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:
jmviz 2023-02-17 17:41:39 -05:00
parent a6603fc21d
commit ed1f467aab

View file

@ -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"
} }
] ]
}, },