mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-18 08:10:11 +00:00
Add inRustProject
when-clause for commands.
This commit is contained in:
parent
94889b6472
commit
f3e04fbbab
3 changed files with 76 additions and 1 deletions
|
@ -94,3 +94,8 @@ export function isValidExecutable(path: string): boolean {
|
|||
|
||||
return res.status === 0;
|
||||
}
|
||||
|
||||
/** Sets ['when'](https://code.visualstudio.com/docs/getstarted/keybindings#_when-clause-contexts) clause contexts */
|
||||
export function setContextValue(key: string, value: any): Thenable<void> {
|
||||
return vscode.commands.executeCommand('setContext', key, value);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue