diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2020-02-28 09:32:56 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2020-02-28 09:32:56 +0000 |
commit | 2d5e54e955d5cfbce1dff4945186b2d878e38da7 (patch) | |
tree | cc603db141681136d5487f2454dd4b70df31902a /editors/code | |
parent | 553353e3160c589ee4b77bd30fa5bbd6df5e0e70 (diff) | |
parent | 9251cd8440ec48ef9174560d423423f4b5e412bc (diff) |
Merge #3355
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 <[email protected]>
Diffstat (limited to 'editors/code')
-rw-r--r-- | editors/code/package.json | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/editors/code/package.json b/editors/code/package.json index 5effa3e17..e484467b0 100644 --- a/editors/code/package.json +++ b/editors/code/package.json | |||
@@ -187,7 +187,29 @@ | |||
187 | "rust-analyzer.featureFlags": { | 187 | "rust-analyzer.featureFlags": { |
188 | "type": "object", | 188 | "type": "object", |
189 | "default": {}, | 189 | "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 | } | ||
191 | }, | 213 | }, |
192 | "rust-analyzer.serverPath": { | 214 | "rust-analyzer.serverPath": { |
193 | "type": [ | 215 | "type": [ |