Skip to content

Commit

Permalink
fix: SFC validation broken with lang="postcss"
Browse files Browse the repository at this point in the history
close #508
  • Loading branch information
johnsoncodehk committed Sep 19, 2021
1 parent 7a6254d commit c62a676
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -365,7 +365,7 @@ export function register({ sourceFiles, getCssLs, jsonLs, templateTsLs, scriptTs
const cssLs = getCssLs(textDocument.languageId);
if (!cssLs || !stylesheet) continue;
const settings = await vueHost.getCssLanguageSettings?.(textDocument);
const errs = cssLs.doValidation(textDocument, stylesheet, settings);
const errs = cssLs.doValidation(textDocument, stylesheet, settings ?? undefined /* cssLs accept undefined but not null */);
if (errs) result.set(textDocument.uri, errs);
}
return result;
Expand Down

0 comments on commit c62a676

Please sign in to comment.