INNER CODE UNIT · TypeScript

lintCommand

tim-koehler/Helm-Intellisense · src/extension.ts:39

    const lintCommand = vscode.commands.registerCommand(LINT_COMMAND_STRING, () => LintCommand(collection));
    context.subscriptions.push(lintCommand);

    const lintChartCommand = vscode.commands.registerCommand(LINT_CHART_COMMAND_STRING, () => LintChartCommand(collection));
    context.subscriptions.push(lintChartCommand);

    vscode.workspace.onDidSaveTextDocument(() => {
        if (vscode.workspace.getConfiguration('helm-intellisense').get('lintFileOnSave') === false) {
            return;
        }

        vscode.commands.executeCommand(LINT_COMMAND_STRING).then(undefined, err => {
            console.error(err);
        });
    });
}

/**

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…