From 8a788c764f579361debd5ec7894fa164f5a84630 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Thu, 2 Apr 2020 14:30:28 +0200 Subject: Allow fully overriding check and fmt commands --- editors/code/package.json | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'editors') diff --git a/editors/code/package.json b/editors/code/package.json index 1f95cd130..e1c34c6ad 100644 --- a/editors/code/package.json +++ b/editors/code/package.json @@ -248,6 +248,13 @@ "default": [], "description": "Additional arguments to rustfmt" }, + "rust-analyzer.rustfmt.overrideCommand": { + "type": "array", + "items": { + "type": "string" + }, + "markdownDescription": "Advanced option, fully override the command rust-analyzer uses for formatting." + }, "rust-analyzer.checkOnSave.enable": { "type": "boolean", "default": true, @@ -266,6 +273,13 @@ "default": "check", "markdownDescription": "Cargo command to use for `cargo check`" }, + "rust-analyzer.checkOnSave.overrideCommand": { + "type": "array", + "items": { + "type": "string" + }, + "markdownDescription": "Advanced option, fully override the command rust-analyzer uses for checking. The command must include `--message=format=json`." + }, "rust-analyzer.checkOnSave.allTargets": { "type": "boolean", "default": true, -- cgit v1.2.3