Skip to content

Commit 45b9d6d

Browse files
bors[bot]Veetaha
andauthored
Merge #3844
3844: vscode: restore removed default values r=matklad a=Veetaha 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. cc @matklad Co-authored-by: veetaha <[email protected]>
2 parents 2071d0b + 486cb5b commit 45b9d6d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

editors/code/package.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,10 +211,12 @@
211211
},
212212
"rust-analyzer.notifications.workspaceLoaded": {
213213
"type": "boolean",
214+
"default": true,
214215
"markdownDescription": "Whether to show `workspace loaded` message."
215216
},
216217
"rust-analyzer.notifications.cargoTomlNotFound": {
217218
"type": "boolean",
219+
"default": true,
218220
"markdownDescription": "Whether to show `can't find Cargo.toml` error message"
219221
},
220222
"rust-analyzer.cargo.noDefaultFeatures": {
@@ -253,6 +255,7 @@
253255
"items": {
254256
"type": "string"
255257
},
258+
"default": [],
256259
"markdownDescription": "Advanced option, fully override the command rust-analyzer uses for formatting."
257260
},
258261
"rust-analyzer.checkOnSave.enable": {
@@ -278,6 +281,7 @@
278281
"items": {
279282
"type": "string"
280283
},
284+
"default": [],
281285
"markdownDescription": "Advanced option, fully override the command rust-analyzer uses for checking. The command should include `--message=format=json` or similar option."
282286
},
283287
"rust-analyzer.checkOnSave.allTargets": {
@@ -327,6 +331,7 @@
327331
},
328332
"rust-analyzer.callInfo.full": {
329333
"type": "boolean",
334+
"default": true,
330335
"description": "Show function name and docs in parameter hints"
331336
},
332337
"rust-analyzer.highlighting.semanticTokens": {

0 commit comments

Comments
 (0)