diff --git a/code/package.json b/code/package.json index 042821b1cad..35367edb6d0 100644 --- a/code/package.json +++ b/code/package.json @@ -39,16 +39,24 @@ }, { "command": "libsyntax-rust.matchingBrace", - "key": "ctrl+shift+m", "title": "Rust Matching Brace" }, { "command": "libsyntax-rust.parentModule", - "key": "ctrl+u", "title": "Rust Parent Module" } ], "keybindings": [ + { + "command": "libsyntax-rust.parentModule", + "key": "ctrl+u", + "when": "editorTextFocus && editorLangId == rust" + }, + { + "command": "libsyntax-rust.matchingBrace", + "key": "ctrl+shift+m", + "when": "editorTextFocus && editorLangId == rust" + }, { "command": "libsyntax-rust.extendSelection", "key": "ctrl+w",