Skip to content

Commit

Permalink
fixed lazy client
Browse files Browse the repository at this point in the history
  • Loading branch information
HD787 committed Jan 24, 2025
1 parent 6fbae9a commit ac7533d
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import { ActiveJsTsEditorTracker } from './ui/activeJsTsEditorTracker';
import ManagedFileContextManager from './ui/managedFileContext';
import { ServiceConfigurationProvider } from './configuration/configuration';
import * as fileSchemes from './configuration/fileSchemes';
import { standardLanguageDescriptions } from './configuration/languageDescription';
import { standardLanguageDescriptions, isJsConfigOrTsConfigFileName } from './configuration/languageDescription';
import { Lazy, lazy } from './utils/lazy';
import { Logger } from './logging/logger';
import { PluginManager } from './tsServer/plugins';
Expand Down Expand Up @@ -97,6 +97,10 @@ 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
&& !fileSchemes.disabledSchemes.has(document.uri.scheme);
}

0 comments on commit ac7533d

Please sign in to comment.