Skip to content

Commit c62a676

Browse files
committed
fix: SFC validation broken with lang="postcss"
close #508
1 parent 7a6254d commit c62a676

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/vscode-vue-languageservice/src/services/diagnostics.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ export function register({ sourceFiles, getCssLs, jsonLs, templateTsLs, scriptTs
365365
const cssLs = getCssLs(textDocument.languageId);
366366
if (!cssLs || !stylesheet) continue;
367367
const settings = await vueHost.getCssLanguageSettings?.(textDocument);
368-
const errs = cssLs.doValidation(textDocument, stylesheet, settings);
368+
const errs = cssLs.doValidation(textDocument, stylesheet, settings ?? undefined /* cssLs accept undefined but not null */);
369369
if (errs) result.set(textDocument.uri, errs);
370370
}
371371
return result;

0 commit comments

Comments
 (0)