diff options
author | vsrs <[email protected]> | 2020-05-27 17:40:13 +0100 |
---|---|---|
committer | vsrs <[email protected]> | 2020-05-27 17:46:23 +0100 |
commit | f3e04fbbabe2887542a9bb57fffcabc7cb50d406 (patch) | |
tree | 2a546bc7eb167a5f996b81831472983742515315 /editors/code/src/util.ts | |
parent | 94889b6472b6332436235f6074ebc8ae3ac0ef15 (diff) |
Add `inRustProject` when-clause for commands.
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 | } | ||