INNER CODE UNIT · TypeScript

LintChartCommand

tim-koehler/Helm-Intellisense · src/Commands/LintChartCommand.ts:7

export async function LintChartCommand(collection: vscode.DiagnosticCollection): Promise<void> {
    const doc = vscode.window.activeTextEditor?.document;
    if (doc === undefined) {
        return;
    }

    const chartBasePath = utils.getChartBasePath(doc.fileName);
    if (chartBasePath === undefined) {
        return;
    }

    const templates = walkDirectory(chartBasePath + sep + 'templates');
    let hasErrors = false;
    for (const template of templates) {
        await vscode.workspace.openTextDocument(template).then(template => {
            if (LintCommand(collection, template)) {
                hasErrors = true;
            }

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…