From 501c5b45acdc2ad3e6b4572425d40104923e7a75 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Tue, 7 Apr 2020 08:51:52 +0200 Subject: Better config scheme & defaults --- editors/code/package.json | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) (limited to 'editors') diff --git a/editors/code/package.json b/editors/code/package.json index 60ca0c69c..8ae8ea414 100644 --- a/editors/code/package.json +++ b/editors/code/package.json @@ -251,11 +251,15 @@ "description": "Additional arguments to rustfmt" }, "rust-analyzer.rustfmt.overrideCommand": { - "type": "array", + "type": [ + "null", + "array" + ], "items": { - "type": "string" + "type": "string", + "minItems": 1 }, - "default": [], + "default": null, "markdownDescription": "Advanced option, fully override the command rust-analyzer uses for formatting." }, "rust-analyzer.checkOnSave.enable": { @@ -277,11 +281,15 @@ "markdownDescription": "Cargo command to use for `cargo check`" }, "rust-analyzer.checkOnSave.overrideCommand": { - "type": "array", + "type": [ + "null", + "array" + ], "items": { - "type": "string" + "type": "string", + "minItems": 1 }, - "default": [], + "default": null, "markdownDescription": "Advanced option, fully override the command rust-analyzer uses for checking. The command should include `--message=format=json` or similar option." }, "rust-analyzer.checkOnSave.allTargets": { -- cgit v1.2.3