Fix missing "Restart TS Server" command in Command Palette (#223433)

Update TypeScript context keys when tab groups changed

Co-authored-by: Matt Bierner <matb@microsoft.com>
This commit is contained in:
Anees Ahee
2024-07-30 22:33:33 +01:00
committed by GitHub
parent 4d02fea6f7
commit 7d0a6b8a0a
2 changed files with 2 additions and 1 deletions

View File

@@ -28,6 +28,7 @@ export class ActiveJsTsEditorTracker extends Disposable {
this._register(vscode.window.onDidChangeActiveTextEditor(_ => this.update()));
this._register(vscode.window.onDidChangeVisibleTextEditors(_ => this.update()));
this._register(vscode.window.tabGroups.onDidChangeTabGroups(_ => this.update()));
this.update();
}

View File

@@ -10,7 +10,7 @@ import { isSupportedLanguageMode } from '../configuration/languageIds';
import { Disposable } from '../utils/dispose';
import { ActiveJsTsEditorTracker } from './activeJsTsEditorTracker';
/**E
/**
* When clause context set when the current file is managed by vscode's built-in typescript extension.
*/
export default class ManagedFileContextManager extends Disposable {