Skip to content

Commit

Permalink
correct conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
HD787 committed Jan 24, 2025
1 parent ac7533d commit 3eb1f2c
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,10 +97,6 @@ function isSupportedDocument(
supportedLanguage: readonly string[],
document: vscode.TextDocument
): boolean {
//Activate for JS/TS config files
if (isJsConfigOrTsConfigFileName(document.fileName)) {
return true;
}
return supportedLanguage.indexOf(document.languageId) >= 0
return (supportedLanguage.indexOf(document.languageId) >= 0 || isJsConfigOrTsConfigFileName(document.fileName))
&& !fileSchemes.disabledSchemes.has(document.uri.scheme);
}

0 comments on commit 3eb1f2c

Please sign in to comment.