mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-27 03:54:24 +01:00
@@ -31,9 +31,11 @@ export default class ManagedFileContextManager {
|
||||
this.onDidChangeActiveTextEditorSub.dispose();
|
||||
}
|
||||
|
||||
private onDidChangeActiveTextEditor(editor: vscode.TextEditor): any {
|
||||
const isManagedFile = isSupportedLanguageMode(editor.document) && this.normalizePath(editor.document.uri) !== null;
|
||||
this.updateContext(isManagedFile);
|
||||
private onDidChangeActiveTextEditor(editor?: vscode.TextEditor): any {
|
||||
if (editor) {
|
||||
const isManagedFile = isSupportedLanguageMode(editor.document) && this.normalizePath(editor.document.uri) !== null;
|
||||
this.updateContext(isManagedFile);
|
||||
}
|
||||
}
|
||||
|
||||
private updateContext(newValue: boolean) {
|
||||
|
||||
Reference in New Issue
Block a user