aboutsummaryrefslogtreecommitdiff
path: root/editors/code/package.json
diff options
context:
space:
mode:
authorVille Penttinen <[email protected]>2019-03-21 11:56:25 +0000
committerVille Penttinen <[email protected]>2019-03-21 11:56:25 +0000
commit5c3e9c716e11a0b795d484403289fe9940b7efda (patch)
treeacc588e7538f0b682232d7d47a1d7b68ab95b993 /editors/code/package.json
parentaa0cc0c6096ca8ba80ef225c813fe30310ba6c33 (diff)
Change enableCargoWatchOnStartup to have three states
This fixes #1005. Defaults to `ask` which prompts users each time whether to start `cargo watch` or not. `enabled` always starts `cargo watch` and `disabled` does not.
Diffstat (limited to 'editors/code/package.json')
-rw-r--r--editors/code/package.json16
1 files changed, 13 insertions, 3 deletions
diff --git a/editors/code/package.json b/editors/code/package.json
index 3e8cde388..facb633d9 100644
--- a/editors/code/package.json
+++ b/editors/code/package.json
@@ -169,9 +169,19 @@
169 "description": "Path to ra_lsp_server executable" 169 "description": "Path to ra_lsp_server executable"
170 }, 170 },
171 "rust-analyzer.enableCargoWatchOnStartup": { 171 "rust-analyzer.enableCargoWatchOnStartup": {
172 "type": "boolean", 172 "type": "string",
173 "default": "true", 173 "default": "ask",
174 "description": "When enabled, ask the user whether to run `cargo watch` on startup" 174 "enum": [
175 "ask",
176 "enabled",
177 "disabled"
178 ],
179 "enumDescriptions": [
180 "Asks each time whether to run `cargo watch`",
181 "`cargo watch` is always started",
182 "Don't start `cargo watch`"
183 ],
184 "description": "Whether to run `cargo watch` on startup"
175 }, 185 },
176 "rust-analyzer.trace.server": { 186 "rust-analyzer.trace.server": {
177 "type": "string", 187 "type": "string",