aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorvsrs <[email protected]>2020-05-28 14:04:42 +0100
committerGitHub <[email protected]>2020-05-28 14:04:42 +0100
commit6d0f1e2e7209e85c1c558bd712d22e359f1f2786 (patch)
treec8f528ba1dea4274f7abe72d9360310b8c483758 /docs
parentf3e04fbbabe2887542a9bb57fffcabc7cb50d406 (diff)
Add `inRustProject` context documentation.
Diffstat (limited to 'docs')
-rw-r--r--docs/user/readme.adoc10
1 files changed, 10 insertions, 0 deletions
diff --git a/docs/user/readme.adoc b/docs/user/readme.adoc
index 40ed54809..0631ca883 100644
--- a/docs/user/readme.adoc
+++ b/docs/user/readme.adoc
@@ -65,6 +65,16 @@ The server binary is stored in:
65 65
66Note that we only support two most recent versions of VS Code. 66Note that we only support two most recent versions of VS Code.
67 67
68==== Special `when` clause context for keybindings.
69You may use `inRustProject` context to configure keybindings for rust projects only. For example:
70[source,json]
71----
72{ "key": "ctrl+shift+f5", "command": "workbench.action.debug.restart", "when": "inDebugMode && !inRustProject"},
73{ "key": "ctrl+shift+f5", "command": "rust-analyzer.debug", "when": "inRustProject"},
74{ "key": "ctrl+i", "command": "rust-analyzer.toggleInlayHints", "when": "inRustProject" }
75----
76More about `when` clause contexts https://code.visualstudio.com/docs/getstarted/keybindings#_when-clause-contexts[here].
77
68==== Updates 78==== Updates
69 79
70The extension will be updated automatically as new versions become available. It will ask your permission to download the matching language server version binary if needed. 80The extension will be updated automatically as new versions become available. It will ask your permission to download the matching language server version binary if needed.