Skip to content

Commit 9251cd8

Browse files
author
Veetaha
committed
vscode: added feature flags for better short-term ux
1 parent e0c6e10 commit 9251cd8

File tree

1 file changed

+23
-1
lines changed

1 file changed

+23
-1
lines changed

editors/code/package.json

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,29 @@
187187
"rust-analyzer.featureFlags": {
188188
"type": "object",
189189
"default": {},
190-
"description": "Fine grained feature flags to disable annoying features"
190+
"description": "Fine grained feature flags to disable annoying features",
191+
"properties": {
192+
"lsp.diagnostics": {
193+
"type": "boolean",
194+
"description": "Whether to show diagnostics from `cargo check`"
195+
},
196+
"completion.insertion.add-call-parenthesis": {
197+
"type": "boolean",
198+
"description": "Whether to add parenthesis when completing functions"
199+
},
200+
"completion.enable-postfix": {
201+
"type": "boolean",
202+
"description": "Whether to show postfix snippets like `dbg`, `if`, `not`, etc."
203+
},
204+
"notifications.workspace-loaded": {
205+
"type": "boolean",
206+
"description": "Whether to show `workspace loaded` message"
207+
},
208+
"notifications.cargo-toml-not-found": {
209+
"type": "boolean",
210+
"description": "Whether to show `can't find Cargo.toml` error message"
211+
}
212+
}
191213
},
192214
"rust-analyzer.serverPath": {
193215
"type": [

0 commit comments

Comments
 (0)