diff options
Diffstat (limited to 'editors/code/src/util.ts')
-rw-r--r-- | editors/code/src/util.ts | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/editors/code/src/util.ts b/editors/code/src/util.ts index 793c481fb..352ef9162 100644 --- a/editors/code/src/util.ts +++ b/editors/code/src/util.ts | |||
@@ -94,3 +94,8 @@ export function isValidExecutable(path: string): boolean { | |||
94 | 94 | ||
95 | return res.status === 0; | 95 | return res.status === 0; |
96 | } | 96 | } |
97 | |||
98 | /** Sets ['when'](https://code.visualstudio.com/docs/getstarted/keybindings#_when-clause-contexts) clause contexts */ | ||
99 | export function setContextValue(key: string, value: any): Thenable<void> { | ||
100 | return vscode.commands.executeCommand('setContext', key, value); | ||
101 | } | ||