aboutsummaryrefslogtreecommitdiff
path: root/editors/code/package.json
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2020-02-14 21:08:47 +0000
committerGitHub <[email protected]>2020-02-14 21:08:47 +0000
commitab42174653ae42f8d862f28ef802bf1312be1694 (patch)
tree0d3bf6a0d6712263e2ec4da30914ad3be37e8387 /editors/code/package.json
parentb2b94cbf71738e7bc372328f22c8dcc8c734b34c (diff)
parent20fabaf1eeec32e1115627a5552eddf0c074ce37 (diff)
Merge #3131
3131: vscode: simplified config and to removed one source of truth of default values r=matklad a=Veetaha Though not intended initially, the implementation of config design is alike [dart's one](https://github.com/Dart-Code/Dart-Code/blob/master/src/extension/config.ts) as pointed by @matklad in PM. Co-authored-by: Veetaha <[email protected]>
Diffstat (limited to 'editors/code/package.json')
-rw-r--r--editors/code/package.json10
1 files changed, 10 insertions, 0 deletions
diff --git a/editors/code/package.json b/editors/code/package.json
index db1fe5189..a607c2148 100644
--- a/editors/code/package.json
+++ b/editors/code/package.json
@@ -182,6 +182,9 @@
182 }, 182 },
183 "rust-analyzer.excludeGlobs": { 183 "rust-analyzer.excludeGlobs": {
184 "type": "array", 184 "type": "array",
185 "items": {
186 "type": "string"
187 },
185 "default": [], 188 "default": [],
186 "description": "Paths to exclude from analysis" 189 "description": "Paths to exclude from analysis"
187 }, 190 },
@@ -197,6 +200,9 @@
197 }, 200 },
198 "rust-analyzer.cargo-watch.arguments": { 201 "rust-analyzer.cargo-watch.arguments": {
199 "type": "array", 202 "type": "array",
203 "items": {
204 "type": "string"
205 },
200 "description": "`cargo-watch` arguments. (e.g: `--features=\"shumway,pdf\"` will run as `cargo watch -x \"check --features=\"shumway,pdf\"\"` )", 206 "description": "`cargo-watch` arguments. (e.g: `--features=\"shumway,pdf\"` will run as `cargo watch -x \"check --features=\"shumway,pdf\"\"` )",
201 "default": [] 207 "default": []
202 }, 208 },
@@ -242,6 +248,7 @@
242 "rust-analyzer.maxInlayHintLength": { 248 "rust-analyzer.maxInlayHintLength": {
243 "type": "number", 249 "type": "number",
244 "default": 20, 250 "default": 20,
251 "exclusiveMinimum": 0,
245 "description": "Maximum length for inlay hints" 252 "description": "Maximum length for inlay hints"
246 }, 253 },
247 "rust-analyzer.cargoFeatures.noDefaultFeatures": { 254 "rust-analyzer.cargoFeatures.noDefaultFeatures": {
@@ -256,6 +263,9 @@
256 }, 263 },
257 "rust-analyzer.cargoFeatures.features": { 264 "rust-analyzer.cargoFeatures.features": {
258 "type": "array", 265 "type": "array",
266 "items": {
267 "type": "string"
268 },
259 "default": [], 269 "default": [],
260 "description": "List of features to activate" 270 "description": "List of features to activate"
261 } 271 }