about summary refs log tree commit diff
path: root/editors/code/package.json
diff options
context:
space:
mode:
authorvsrs <vit@conrlab.com>2021-04-22 16:09:46 +0300
committervsrs <vit@conrlab.com>2021-04-22 16:09:46 +0300
commit1ebfe11730191e914dcf20297cdfdac5b7c297fc (patch)
treeae6caf9e8fd50e3eac826d0a3f0698c6e047544f /editors/code/package.json
parent8f781e782c7e16aa323672620753ec31526d2b90 (diff)
downloadrust-1ebfe11730191e914dcf20297cdfdac5b7c297fc.tar.gz
rust-1ebfe11730191e914dcf20297cdfdac5b7c297fc.zip
Add special `auto` value for `debug.sourceFileMap`
Diffstat (limited to 'editors/code/package.json')
-rw-r--r--editors/code/package.json5
1 files changed, 3 insertions, 2 deletions
diff --git a/editors/code/package.json b/editors/code/package.json
index fa5632f9007..5437a064869 100644
--- a/editors/code/package.json
+++ b/editors/code/package.json
@@ -353,8 +353,9 @@
                         "Use [MS C++ tools](https://marketplace.visualstudio.com/items?itemName=ms-vscode.cpptools)"
                     ]
                 },
-                "rust-analyzer.debug.sourceFileMap": {
-                    "type": "object",
+                "rust-analyzer.debug.sourceFileMap": {                    
+                    "type": ["object", "string"],
+                    "const": "auto",
                     "description": "Optional source file mappings passed to the debug engine.",
                     "default": {
                         "/rustc/<id>": "${env:USERPROFILE}/.rustup/toolchains/<toolchain-id>/lib/rustlib/src/rust"