aboutsummaryrefslogtreecommitdiff
path: root/editors
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2020-06-10 08:39:44 +0100
committerGitHub <[email protected]>2020-06-10 08:39:44 +0100
commit560b98bc505be6ff70876df661e4055e1b38a78c (patch)
treee88fd7c03820fa2131b4dd1c4e0789590ebe7629 /editors
parentc9fc7251ca2ccdbd42fd21130139026878633b77 (diff)
parentfe21fc2d259cbe2a32bfee3432f2c51ade079083 (diff)
Merge #4822
4822: Let checkOnSafe default to some of the options of cargo r=matklad a=clemenswasser This will fix #4631 The implementation works (as far as I have tested) but is suboptimal because I am copying the "cargo.features". Co-authored-by: Clemens Wasser <[email protected]>
Diffstat (limited to 'editors')
-rw-r--r--editors/code/package.json20
1 files changed, 17 insertions, 3 deletions
diff --git a/editors/code/package.json b/editors/code/package.json
index 779d7e1b8..e2027970d 100644
--- a/editors/code/package.json
+++ b/editors/code/package.json
@@ -318,9 +318,23 @@
318 "markdownDescription": "Check all targets and tests (will be passed as `--all-targets`)" 318 "markdownDescription": "Check all targets and tests (will be passed as `--all-targets`)"
319 }, 319 },
320 "rust-analyzer.checkOnSave.allFeatures": { 320 "rust-analyzer.checkOnSave.allFeatures": {
321 "type": "boolean", 321 "type": [
322 "default": false, 322 "null",
323 "markdownDescription": "Check with all features (will be passed as `--all-features`)" 323 "boolean"
324 ],
325 "default": null,
326 "markdownDescription": "Check with all features (will be passed as `--all-features`). Defaults to `rust-analyzer.cargo.allFeatures`."
327 },
328 "rust-analyzer.checkOnSave.features": {
329 "type": [
330 "null",
331 "array"
332 ],
333 "items": {
334 "type": "string"
335 },
336 "default": null,
337 "description": "List of features to activate. Defaults to `rust-analyzer.cargo.features`."
324 }, 338 },
325 "rust-analyzer.inlayHints.enable": { 339 "rust-analyzer.inlayHints.enable": {
326 "type": "boolean", 340 "type": "boolean",