INNER CODE UNIT · TypeScript

lintChartCommand

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

    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);
        });
    });
}

/**
 * Deactivates the extension.
 */
export function deactivate(): void {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…