From 9b47124e6e5d32a676961c05661934215e98012c Mon Sep 17 00:00:00 2001 From: Veetaha Date: Thu, 13 Feb 2020 22:47:31 +0200 Subject: [PATCH] vscode: added more type safety to package.json config --- editors/code/package.json | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/editors/code/package.json b/editors/code/package.json index f687eb8d45..12d32cef72 100644 --- a/editors/code/package.json +++ b/editors/code/package.json @@ -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" }