about summary refs log tree commit diff
path: root/editors/code/package.json
diff options
context:
space:
mode:
authorAdam Sandberg Ericsson <adam@sandbergericsson.se>2023-05-13 15:12:32 +0100
committerAdam Sandberg Ericsson <adam@sandbergericsson.se>2023-08-08 14:28:35 +0200
commit9cb1f45e6f1aedddb475aa61a7bebd9fb26cc094 (patch)
treed59e56947e9c0fd193b968cc9324b4a76b64f1b1 /editors/code/package.json
parentcabe26c228b1e286d25f025603f2a5dcb45fe9ad (diff)
downloadrust-9cb1f45e6f1aedddb475aa61a7bebd9fb26cc094.tar.gz
rust-9cb1f45e6f1aedddb475aa61a7bebd9fb26cc094.zip
add check.ignore to list cargo check diagnostics to ignore (dead_code, unused_imports, ...)
fixes #14798
Diffstat (limited to 'editors/code/package.json')
-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 cd8b40e3557..f6b8450eef1 100644
--- a/editors/code/package.json
+++ b/editors/code/package.json
@@ -688,6 +688,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",