mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-14 14:13:58 +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": [
|
"editor/context": [
|
||||||
{
|
{
|
||||||
"command": "rust-analyzer.peekTests",
|
"command": "rust-analyzer.peekTests",
|
||||||
"when": "inRustProject",
|
"when": "inRustProject && editorTextFocus && editorLangId == rust",
|
||||||
"group": "navigation@1000"
|
"group": "navigation@1000"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"command": "rust-analyzer.openDocs",
|
||||||
|
"when": "inRustProject && editorTextFocus && editorLangId == rust",
|
||||||
|
"group": "navigation@1001"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue