about summary refs log tree commit diff
path: root/editors/code/package.json
diff options
context:
space:
mode:
authorveetaha <veetaha2@gmail.com>2020-04-04 15:57:03 +0300
committerveetaha <veetaha2@gmail.com>2020-04-04 15:57:23 +0300
commit486cb5b79aa9509ff86e19090f192512e23b809a (patch)
tree1236970d159aa5aa412c58c77c20616af152cd9f /editors/code/package.json
parent6207ac90da7e607218457bf872fa32df6b78f224 (diff)
downloadrust-486cb5b79aa9509ff86e19090f192512e23b809a.tar.gz
rust-486cb5b79aa9509ff86e19090f192512e23b809a.zip
vscode: restore removed default values
After refactoring the config we forgot to set defaults for
some properties like workspaceLoaded, callInfo.full, etc.
This commit restored them to being turned on by defult,
as well added defaults for other props to be more explicit
on their defualt value.
Diffstat (limited to 'editors/code/package.json')
-rw-r--r--editors/code/package.json5
1 files changed, 5 insertions, 0 deletions
diff --git a/editors/code/package.json b/editors/code/package.json
index 595d6e378c1..f0d5127d4e9 100644
--- a/editors/code/package.json
+++ b/editors/code/package.json
@@ -211,10 +211,12 @@
                 },
                 "rust-analyzer.notifications.workspaceLoaded": {
                     "type": "boolean",
+                    "default": true,
                     "markdownDescription": "Whether to show `workspace loaded` message."
                 },
                 "rust-analyzer.notifications.cargoTomlNotFound": {
                     "type": "boolean",
+                    "default": true,
                     "markdownDescription": "Whether to show `can't find Cargo.toml` error message"
                 },
                 "rust-analyzer.cargo.noDefaultFeatures": {
@@ -253,6 +255,7 @@
                     "items": {
                         "type": "string"
                     },
+                    "default": [],
                     "markdownDescription": "Advanced option, fully override the command rust-analyzer uses for formatting."
                 },
                 "rust-analyzer.checkOnSave.enable": {
@@ -278,6 +281,7 @@
                     "items": {
                         "type": "string"
                     },
+                    "default": [],
                     "markdownDescription": "Advanced option, fully override the command rust-analyzer uses for checking. The command should include `--message=format=json` or similar option."
                 },
                 "rust-analyzer.checkOnSave.allTargets": {
@@ -327,6 +331,7 @@
                 },
                 "rust-analyzer.callInfo.full": {
                     "type": "boolean",
+                    "default": true,
                     "description": "Show function name and docs in parameter hints"
                 },
                 "rust-analyzer.highlighting.semanticTokens": {