about summary refs log tree commit diff
path: root/editors/code
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-08-08 18:49:45 +0000
committerbors <bors@rust-lang.org>2023-08-08 18:49:45 +0000
commite13fac379e570c07d64690df05635ac9b865f148 (patch)
treed2f4cd006bd8695977f1459fc5a1bb6d9826a993 /editors/code
parent6918eb6ebd4e31dbba317f6e8e659fbc4c64ebaa (diff)
parent9cb1f45e6f1aedddb475aa61a7bebd9fb26cc094 (diff)
downloadrust-e13fac379e570c07d64690df05635ac9b865f148.tar.gz
rust-e13fac379e570c07d64690df05635ac9b865f148.zip
Auto merge of #15262 - adamse:master, r=HKalbasi
add check.ignore to list cargo check diagnostics to ignore (dead_code, unused_imports, ...)

fixes #14798
Diffstat (limited to 'editors/code')
-rw-r--r--editors/code/package.json9
1 files changed, 9 insertions, 0 deletions
diff --git a/editors/code/package.json b/editors/code/package.json
index 76d7e91f381..96fc8d7ecf0 100644
--- a/editors/code/package.json
+++ b/editors/code/package.json
@@ -700,6 +700,15 @@
                         }
                     ]
                 },
+                "rust-analyzer.check.ignore": {
+                    "markdownDescription": "List of `cargo check` (or other command specified in `check.command`) diagnostics to ignore.\n\nFor example for `cargo check`: `dead_code`, `unused_imports`, `unused_variables`,...",
+                    "default": [],
+                    "type": "array",
+                    "items": {
+                        "type": "string"
+                    },
+                    "uniqueItems": true
+                },
                 "rust-analyzer.check.invocationLocation": {
                     "markdownDescription": "Specifies the working directory for running checks.\n- \"workspace\": run checks for workspaces in the corresponding workspaces' root directories.\n    This falls back to \"root\" if `#rust-analyzer.cargo.checkOnSave.invocationStrategy#` is set to `once`.\n- \"root\": run checks in the project's root directory.\nThis config only has an effect when `#rust-analyzer.cargo.buildScripts.overrideCommand#`\nis set.",
                     "default": "workspace",