mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-08 09:08:48 +01:00
correct conditions
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user