vscode: added more type safety to package.json config

This commit is contained in:
Veetaha 2020-02-13 22:47:31 +02:00
parent 3da53ab3e7
commit 9b47124e6e

View file

@ -181,6 +181,9 @@
},
"rust-analyzer.excludeGlobs": {
"type": "array",
"items": {
"type": "string"
},
"default": [],
"description": "Paths to exclude from analysis"
},
@ -196,6 +199,9 @@
},
"rust-analyzer.cargo-watch.arguments": {
"type": "array",
"items": {
"type": "string"
},
"description": "`cargo-watch` arguments. (e.g: `--features=\"shumway,pdf\"` will run as `cargo watch -x \"check --features=\"shumway,pdf\"\"` )",
"default": []
},
@ -241,6 +247,7 @@
"rust-analyzer.maxInlayHintLength": {
"type": "number",
"default": 20,
"exclusiveMinimum": 0,
"description": "Maximum length for inlay hints"
},
"rust-analyzer.cargoFeatures.noDefaultFeatures": {
@ -255,6 +262,9 @@
},
"rust-analyzer.cargoFeatures.features": {
"type": "array",
"items": {
"type": "string"
},
"default": [],
"description": "List of features to activate"
}