diff options
author | Emil Lauridsen <[email protected]> | 2019-12-25 15:50:38 +0000 |
---|---|---|
committer | Emil Lauridsen <[email protected]> | 2019-12-25 16:37:40 +0000 |
commit | 6af4bf7a8d27e653d2e6316172fe140871054d27 (patch) | |
tree | b1a3eed872b7659eb5400e5f2e117a0d008052f9 /editors/code/package.json | |
parent | 41a1ec723ce2ea3fa78ae468830f0a77e5658307 (diff) |
Configuration plumbing for cargo watcher
Diffstat (limited to 'editors/code/package.json')
-rw-r--r-- | editors/code/package.json | 40 |
1 files changed, 10 insertions, 30 deletions
diff --git a/editors/code/package.json b/editors/code/package.json index 6cb24a3ce..5f4123397 100644 --- a/editors/code/package.json +++ b/editors/code/package.json | |||
@@ -188,20 +188,10 @@ | |||
188 | "default": "ra_lsp_server", | 188 | "default": "ra_lsp_server", |
189 | "description": "Path to ra_lsp_server executable" | 189 | "description": "Path to ra_lsp_server executable" |
190 | }, | 190 | }, |
191 | "rust-analyzer.enableCargoWatchOnStartup": { | 191 | "rust-analyzer.enableCargoCheck": { |
192 | "type": "string", | 192 | "type": "boolean", |
193 | "default": "ask", | 193 | "default": true, |
194 | "enum": [ | 194 | "description": "Run `cargo check` for diagnostics on save" |
195 | "ask", | ||
196 | "enabled", | ||
197 | "disabled" | ||
198 | ], | ||
199 | "enumDescriptions": [ | ||
200 | "Asks each time whether to run `cargo watch`", | ||
201 | "`cargo watch` is always started", | ||
202 | "Don't start `cargo watch`" | ||
203 | ], | ||
204 | "description": "Whether to run `cargo watch` on startup" | ||
205 | }, | 195 | }, |
206 | "rust-analyzer.excludeGlobs": { | 196 | "rust-analyzer.excludeGlobs": { |
207 | "type": "array", | 197 | "type": "array", |
@@ -213,25 +203,15 @@ | |||
213 | "default": true, | 203 | "default": true, |
214 | "description": "client provided file watching instead of notify watching." | 204 | "description": "client provided file watching instead of notify watching." |
215 | }, | 205 | }, |
216 | "rust-analyzer.cargo-watch.arguments": { | 206 | "rust-analyzer.cargo-check.arguments": { |
217 | "type": "string", | ||
218 | "description": "`cargo-watch` arguments. (e.g: `--features=\"shumway,pdf\"` will run as `cargo watch -x \"check --features=\"shumway,pdf\"\"` )", | ||
219 | "default": "" | ||
220 | }, | ||
221 | "rust-analyzer.cargo-watch.command": { | ||
222 | "type": "string", | ||
223 | "description": "`cargo-watch` command. (e.g: `clippy` will run as `cargo watch -x clippy` )", | ||
224 | "default": "check" | ||
225 | }, | ||
226 | "rust-analyzer.cargo-watch.ignore": { | ||
227 | "type": "array", | 207 | "type": "array", |
228 | "description": "A list of patterns for cargo-watch to ignore (will be passed as `--ignore`)", | 208 | "description": "`cargo-check` arguments. (e.g: `--features=\"shumway,pdf\"` will run as `cargo check --features=\"shumway,pdf\"` )", |
229 | "default": [] | 209 | "default": [] |
230 | }, | 210 | }, |
231 | "rust-analyzer.cargo-watch.allTargets": { | 211 | "rust-analyzer.cargo-check.command": { |
232 | "type": "boolean", | 212 | "type": "string", |
233 | "description": "Check all targets and tests (will be passed as `--all-targets`)", | 213 | "description": "`cargo-check` command. (e.g: `clippy` will run as `cargo clippy` )", |
234 | "default": true | 214 | "default": "check" |
235 | }, | 215 | }, |
236 | "rust-analyzer.trace.server": { | 216 | "rust-analyzer.trace.server": { |
237 | "type": "string", | 217 | "type": "string", |