diff options
| author | bors <bors@rust-lang.org> | 2023-08-08 18:49:45 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-08-08 18:49:45 +0000 |
| commit | e13fac379e570c07d64690df05635ac9b865f148 (patch) | |
| tree | d2f4cd006bd8695977f1459fc5a1bb6d9826a993 /editors/code/package.json | |
| parent | 6918eb6ebd4e31dbba317f6e8e659fbc4c64ebaa (diff) | |
| parent | 9cb1f45e6f1aedddb475aa61a7bebd9fb26cc094 (diff) | |
| download | rust-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/package.json')
| -rw-r--r-- | editors/code/package.json | 9 |
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", |
