diff options
Diffstat (limited to 'editors/code/package.json')
-rw-r--r-- | editors/code/package.json | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/editors/code/package.json b/editors/code/package.json index d263610f5..67e10df7e 100644 --- a/editors/code/package.json +++ b/editors/code/package.json | |||
@@ -283,6 +283,11 @@ | |||
283 | "default": true, | 283 | "default": true, |
284 | "description": "Whether to show inlay hints." | 284 | "description": "Whether to show inlay hints." |
285 | }, | 285 | }, |
286 | "rust-analyzer.inlayHints.smallerHints": { | ||
287 | "type": "boolean", | ||
288 | "default": true, | ||
289 | "description": "Whether inlay hints font size should be smaller than editor's font size." | ||
290 | }, | ||
286 | "rust-analyzer.updates.channel": { | 291 | "rust-analyzer.updates.channel": { |
287 | "type": "string", | 292 | "type": "string", |
288 | "enum": [ | 293 | "enum": [ |
@@ -354,7 +359,8 @@ | |||
354 | ] | 359 | ] |
355 | }, | 360 | }, |
356 | "rust-analyzer.debug.sourceFileMap": { | 361 | "rust-analyzer.debug.sourceFileMap": { |
357 | "type": "object", | 362 | "type": ["object", "string"], |
363 | "const": "auto", | ||
358 | "description": "Optional source file mappings passed to the debug engine.", | 364 | "description": "Optional source file mappings passed to the debug engine.", |
359 | "default": { | 365 | "default": { |
360 | "/rustc/<id>": "${env:USERPROFILE}/.rustup/toolchains/<toolchain-id>/lib/rustlib/src/rust" | 366 | "/rustc/<id>": "${env:USERPROFILE}/.rustup/toolchains/<toolchain-id>/lib/rustlib/src/rust" |
@@ -434,6 +440,11 @@ | |||
434 | "default": true, | 440 | "default": true, |
435 | "type": "boolean" | 441 | "type": "boolean" |
436 | }, | 442 | }, |
443 | "rust-analyzer.cargo.useRustcWrapperForBuildScripts": { | ||
444 | "markdownDescription": "Use `RUSTC_WRAPPER=rust-analyzer` when running build scripts to\navoid compiling unnecessary things.", | ||
445 | "default": true, | ||
446 | "type": "boolean" | ||
447 | }, | ||
437 | "rust-analyzer.cargo.noDefaultFeatures": { | 448 | "rust-analyzer.cargo.noDefaultFeatures": { |
438 | "markdownDescription": "Do not activate the `default` feature.", | 449 | "markdownDescription": "Do not activate the `default` feature.", |
439 | "default": false, | 450 | "default": false, |
@@ -560,6 +571,11 @@ | |||
560 | }, | 571 | }, |
561 | "uniqueItems": true | 572 | "uniqueItems": true |
562 | }, | 573 | }, |
574 | "rust-analyzer.diagnostics.remapPrefix": { | ||
575 | "markdownDescription": "Map of prefixes to be substituted when parsing diagnostic file paths.\nThis should be the reverse mapping of what is passed to `rustc` as `--remap-path-prefix`.", | ||
576 | "default": {}, | ||
577 | "type": "object" | ||
578 | }, | ||
563 | "rust-analyzer.diagnostics.warningsAsHint": { | 579 | "rust-analyzer.diagnostics.warningsAsHint": { |
564 | "markdownDescription": "List of warnings that should be displayed with info severity.\n\nThe warnings will be indicated by a blue squiggly underline in code\nand a blue icon in the `Problems Panel`.", | 580 | "markdownDescription": "List of warnings that should be displayed with info severity.\n\nThe warnings will be indicated by a blue squiggly underline in code\nand a blue icon in the `Problems Panel`.", |
565 | "default": [], | 581 | "default": [], |
@@ -1190,4 +1206,4 @@ | |||
1190 | ] | 1206 | ] |
1191 | } | 1207 | } |
1192 | } | 1208 | } |
1193 | } \ No newline at end of file | 1209 | } |