mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-27 05:23:24 +00:00
add openDocs to context menu. add further restrictions to context menu when clauses to prevent irrelevant commands in non-rust files
This commit is contained in:
parent
a6603fc21d
commit
ed1f467aab
1 changed files with 6 additions and 1 deletions
|
@ -1869,8 +1869,13 @@
|
|||
"editor/context": [
|
||||
{
|
||||
"command": "rust-analyzer.peekTests",
|
||||
"when": "inRustProject",
|
||||
"when": "inRustProject && editorTextFocus && editorLangId == rust",
|
||||
"group": "navigation@1000"
|
||||
},
|
||||
{
|
||||
"command": "rust-analyzer.openDocs",
|
||||
"when": "inRustProject && editorTextFocus && editorLangId == rust",
|
||||
"group": "navigation@1001"
|
||||
}
|
||||
]
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue