提交 b5b211f2 编写于 作者: M Matt Bierner

Move constant to private static

上级 822c3ba0
...@@ -9,9 +9,8 @@ import { isSupportedLanguageMode } from './languageModeIds'; ...@@ -9,9 +9,8 @@ import { isSupportedLanguageMode } from './languageModeIds';
/** /**
* When clause context set when the current file is managed by vscode's built-in typescript extension. * When clause context set when the current file is managed by vscode's built-in typescript extension.
*/ */
const isManagedFile_contextName = 'typescript.isManagedFile';
export default class ManagedFileContextManager { export default class ManagedFileContextManager {
private static readonly contextName = 'typescript.isManagedFile';
private isInManagedFileContext: boolean = false; private isInManagedFileContext: boolean = false;
...@@ -41,8 +40,7 @@ export default class ManagedFileContextManager { ...@@ -41,8 +40,7 @@ export default class ManagedFileContextManager {
return; return;
} }
vscode.commands.executeCommand('setContext', isManagedFile_contextName, newValue); vscode.commands.executeCommand('setContext', ManagedFileContextManager.contextName, newValue);
this.isInManagedFileContext = newValue; this.isInManagedFileContext = newValue;
} }
} }
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册