mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-01 17:42:47 +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
@ -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 New Issue
Block a user