diff options
Diffstat (limited to 'editors/code/package.json')
-rw-r--r-- | editors/code/package.json | 52 |
1 files changed, 8 insertions, 44 deletions
diff --git a/editors/code/package.json b/editors/code/package.json index 8e7046418..f28ce1772 100644 --- a/editors/code/package.json +++ b/editors/code/package.json | |||
@@ -18,7 +18,7 @@ | |||
18 | "scripts": { | 18 | "scripts": { |
19 | "vscode:prepublish": "npm run compile", | 19 | "vscode:prepublish": "npm run compile", |
20 | "package": "vsce package", | 20 | "package": "vsce package", |
21 | "compile": "rollup -c && shx cp src/utils/terminateProcess.sh bundle/terminateProcess.sh", | 21 | "compile": "rollup -c", |
22 | "watch": "tsc -watch -p ./", | 22 | "watch": "tsc -watch -p ./", |
23 | "fix": "prettier **/*.{json,ts} --write && tslint --project . --fix", | 23 | "fix": "prettier **/*.{json,ts} --write && tslint --project . --fix", |
24 | "lint": "tslint --project .", | 24 | "lint": "tslint --project .", |
@@ -134,16 +134,6 @@ | |||
134 | "command": "rust-analyzer.reload", | 134 | "command": "rust-analyzer.reload", |
135 | "title": "Restart server", | 135 | "title": "Restart server", |
136 | "category": "Rust Analyzer" | 136 | "category": "Rust Analyzer" |
137 | }, | ||
138 | { | ||
139 | "command": "rust-analyzer.startCargoWatch", | ||
140 | "title": "Start Cargo Watch", | ||
141 | "category": "Rust Analyzer" | ||
142 | }, | ||
143 | { | ||
144 | "command": "rust-analyzer.stopCargoWatch", | ||
145 | "title": "Stop Cargo Watch", | ||
146 | "category": "Rust Analyzer" | ||
147 | } | 137 | } |
148 | ], | 138 | ], |
149 | "keybindings": [ | 139 | "keybindings": [ |
@@ -261,21 +251,6 @@ | |||
261 | "default": "ra_lsp_server", | 251 | "default": "ra_lsp_server", |
262 | "description": "Path to ra_lsp_server executable" | 252 | "description": "Path to ra_lsp_server executable" |
263 | }, | 253 | }, |
264 | "rust-analyzer.enableCargoWatchOnStartup": { | ||
265 | "type": "string", | ||
266 | "default": "ask", | ||
267 | "enum": [ | ||
268 | "ask", | ||
269 | "enabled", | ||
270 | "disabled" | ||
271 | ], | ||
272 | "enumDescriptions": [ | ||
273 | "Asks each time whether to run `cargo watch`", | ||
274 | "`cargo watch` is always started", | ||
275 | "Don't start `cargo watch`" | ||
276 | ], | ||
277 | "description": "Whether to run `cargo watch` on startup" | ||
278 | }, | ||
279 | "rust-analyzer.excludeGlobs": { | 254 | "rust-analyzer.excludeGlobs": { |
280 | "type": "array", | 255 | "type": "array", |
281 | "default": [], | 256 | "default": [], |
@@ -286,21 +261,21 @@ | |||
286 | "default": true, | 261 | "default": true, |
287 | "description": "client provided file watching instead of notify watching." | 262 | "description": "client provided file watching instead of notify watching." |
288 | }, | 263 | }, |
264 | "rust-analyzer.cargo-watch.enable": { | ||
265 | "type": "boolean", | ||
266 | "default": true, | ||
267 | "description": "Run `cargo check` for diagnostics on save" | ||
268 | }, | ||
289 | "rust-analyzer.cargo-watch.arguments": { | 269 | "rust-analyzer.cargo-watch.arguments": { |
290 | "type": "string", | 270 | "type": "array", |
291 | "description": "`cargo-watch` arguments. (e.g: `--features=\"shumway,pdf\"` will run as `cargo watch -x \"check --features=\"shumway,pdf\"\"` )", | 271 | "description": "`cargo-watch` arguments. (e.g: `--features=\"shumway,pdf\"` will run as `cargo watch -x \"check --features=\"shumway,pdf\"\"` )", |
292 | "default": "" | 272 | "default": [] |
293 | }, | 273 | }, |
294 | "rust-analyzer.cargo-watch.command": { | 274 | "rust-analyzer.cargo-watch.command": { |
295 | "type": "string", | 275 | "type": "string", |
296 | "description": "`cargo-watch` command. (e.g: `clippy` will run as `cargo watch -x clippy` )", | 276 | "description": "`cargo-watch` command. (e.g: `clippy` will run as `cargo watch -x clippy` )", |
297 | "default": "check" | 277 | "default": "check" |
298 | }, | 278 | }, |
299 | "rust-analyzer.cargo-watch.ignore": { | ||
300 | "type": "array", | ||
301 | "description": "A list of patterns for cargo-watch to ignore (will be passed as `--ignore`)", | ||
302 | "default": [] | ||
303 | }, | ||
304 | "rust-analyzer.cargo-watch.allTargets": { | 279 | "rust-analyzer.cargo-watch.allTargets": { |
305 | "type": "boolean", | 280 | "type": "boolean", |
306 | "description": "Check all targets and tests (will be passed as `--all-targets`)", | 281 | "description": "Check all targets and tests (will be passed as `--all-targets`)", |
@@ -322,17 +297,6 @@ | |||
322 | "default": "off", | 297 | "default": "off", |
323 | "description": "Trace requests to the ra_lsp_server" | 298 | "description": "Trace requests to the ra_lsp_server" |
324 | }, | 299 | }, |
325 | "rust-analyzer.trace.cargo-watch": { | ||
326 | "type": "string", | ||
327 | "scope": "window", | ||
328 | "enum": [ | ||
329 | "off", | ||
330 | "error", | ||
331 | "verbose" | ||
332 | ], | ||
333 | "default": "off", | ||
334 | "description": "Trace output of cargo-watch" | ||
335 | }, | ||
336 | "rust-analyzer.lruCapacity": { | 300 | "rust-analyzer.lruCapacity": { |
337 | "type": "number", | 301 | "type": "number", |
338 | "default": null, | 302 | "default": null, |