correct conditions

This commit is contained in:
henry
2025-01-24 00:41:28 -06:00
parent ac7533df77
commit 3eb1f2c914
@@ -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);
}