diff options
Diffstat (limited to 'editors/code')
-rw-r--r-- | editors/code/package.json | 38 |
1 files changed, 35 insertions, 3 deletions
diff --git a/editors/code/package.json b/editors/code/package.json index 779d7e1b8..3acc375f6 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", |
@@ -511,6 +525,24 @@ | |||
511 | "markdownDescription": "Internal config for debugging, disables loading of sysroot crates", | 525 | "markdownDescription": "Internal config for debugging, disables loading of sysroot crates", |
512 | "type": "boolean", | 526 | "type": "boolean", |
513 | "default": true | 527 | "default": true |
528 | }, | ||
529 | "rust-analyzer.diagnostics.warningsAsInfo": { | ||
530 | "type": "array", | ||
531 | "uniqueItems": true, | ||
532 | "items": { | ||
533 | "type": "string" | ||
534 | }, | ||
535 | "description": "List of warnings that should be displayed with info severity.\nThe warnings will be indicated by a blue squiggly underline in code and a blue icon in the problems panel.", | ||
536 | "default": [] | ||
537 | }, | ||
538 | "rust-analyzer.diagnostics.warningsAsHint": { | ||
539 | "type": "array", | ||
540 | "uniqueItems": true, | ||
541 | "items": { | ||
542 | "type": "string" | ||
543 | }, | ||
544 | "description": "List of warnings warnings that should be displayed with hint severity.\nThe warnings will be indicated by faded text or three dots in code and will not show up in te problems panel.", | ||
545 | "default": [] | ||
514 | } | 546 | } |
515 | } | 547 | } |
516 | }, | 548 | }, |