Skip to content

Commit

Permalink
Merge pull request #238630 from HD787/fixLazyClient
Browse files Browse the repository at this point in the history
enable typescript commands when only config files are open
  • Loading branch information
mjbvz authored Jan 24, 2025
2 parents ef61f9d + 3eb1f2c commit cd9657a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions extensions/typescript-language-features/src/lazyClientHost.ts
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,6 @@ function isSupportedDocument(
supportedLanguage: readonly string[],
document: vscode.TextDocument
): boolean {
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 cd9657a

Please sign in to comment.