3355: vscode: added feature flags for better short-term ux r=matklad a=Veetaha

See [this zulip thread](https://rust-lang.zulipchat.com/#narrow/stream/185405-t-compiler.2Fwg-rls-2.2E0/topic/Feature.20flags) for more details.

Co-authored-by: Veetaha <gerzoh1@gmail.com>
This commit is contained in:
bors[bot] 2020-02-28 09:32:56 +00:00 committed by GitHub
commit 2d5e54e955
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -187,7 +187,29 @@
"rust-analyzer.featureFlags": {
"type": "object",
"default": {},
"description": "Fine grained feature flags to disable annoying features"
"description": "Fine grained feature flags to disable annoying features",
"properties": {
"lsp.diagnostics": {
"type": "boolean",
"description": "Whether to show diagnostics from `cargo check`"
},
"completion.insertion.add-call-parenthesis": {
"type": "boolean",
"description": "Whether to add parenthesis when completing functions"
},
"completion.enable-postfix": {
"type": "boolean",
"description": "Whether to show postfix snippets like `dbg`, `if`, `not`, etc."
},
"notifications.workspace-loaded": {
"type": "boolean",
"description": "Whether to show `workspace loaded` message"
},
"notifications.cargo-toml-not-found": {
"type": "boolean",
"description": "Whether to show `can't find Cargo.toml` error message"
}
}
},
"rust-analyzer.serverPath": {
"type": [