From 53b5f4ba98cfd5af8603c24720bdadd11bb4bfea Mon Sep 17 00:00:00 2001 From: Veetaha Date: Sun, 16 Feb 2020 16:48:17 +0200 Subject: vscode: update exclusiveMinimum validation according to JSONSchemaV4 specs --- editors/code/package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'editors') diff --git a/editors/code/package.json b/editors/code/package.json index 96b8e9eb0..614d36cf7 100644 --- a/editors/code/package.json +++ b/editors/code/package.json @@ -248,7 +248,8 @@ "rust-analyzer.maxInlayHintLength": { "type": "number", "default": 20, - "exclusiveMinimum": 0, + "minimum": 0, + "exclusiveMinimum": true, "description": "Maximum length for inlay hints" }, "rust-analyzer.cargoFeatures.noDefaultFeatures": { -- cgit v1.2.3 From 0565657ed1b51e90f7876158d7b484db1a6c46b2 Mon Sep 17 00:00:00 2001 From: Veetaha Date: Sun, 16 Feb 2020 17:55:15 +0200 Subject: vscode: fix all integer -> number and add nullablitiy to maxInlayHintLength --- editors/code/package.json | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'editors') diff --git a/editors/code/package.json b/editors/code/package.json index 614d36cf7..97f2e63cd 100644 --- a/editors/code/package.json +++ b/editors/code/package.json @@ -233,10 +233,7 @@ "description": "Trace requests to the ra_lsp_server" }, "rust-analyzer.lruCapacity": { - "type": [ - "number", - "null" - ], + "type": [ "null", "integer" ], "default": null, "description": "Number of syntax trees rust-analyzer keeps in memory" }, @@ -246,7 +243,7 @@ "description": "Display additional type and parameter information in the editor" }, "rust-analyzer.maxInlayHintLength": { - "type": "number", + "type": [ "null", "integer" ], "default": 20, "minimum": 0, "exclusiveMinimum": true, -- cgit v1.2.3 From 56b64cac9cbac47e3cf3b04c8cf8e418564e12bd Mon Sep 17 00:00:00 2001 From: Veetaha Date: Sun, 16 Feb 2020 18:00:49 +0200 Subject: vscode: added minimum bound for lruCapacity option --- editors/code/package.json | 2 ++ 1 file changed, 2 insertions(+) (limited to 'editors') diff --git a/editors/code/package.json b/editors/code/package.json index 97f2e63cd..ed1cae2ab 100644 --- a/editors/code/package.json +++ b/editors/code/package.json @@ -235,6 +235,8 @@ "rust-analyzer.lruCapacity": { "type": [ "null", "integer" ], "default": null, + "minimum": 0, + "exclusiveMinimum": true, "description": "Number of syntax trees rust-analyzer keeps in memory" }, "rust-analyzer.displayInlayHints": { -- cgit v1.2.3