add check.ignore to list cargo check diagnostics to ignore (dead_code, unused_imports, ...)

fixes #14798
This commit is contained in:
Adam Sandberg Ericsson 2023-05-13 15:12:32 +01:00
parent cabe26c228
commit 9cb1f45e6f
5 changed files with 30 additions and 0 deletions

View file

@ -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",