diff options
| author | Ali Bektas <bektasali@protonmail.com> | 2024-11-26 18:37:39 +0100 |
|---|---|---|
| committer | Ali Bektas <bektasali@protonmail.com> | 2024-11-26 18:37:39 +0100 |
| commit | 4866fb457a396669fc2d96a8cf5938f4cce5e162 (patch) | |
| tree | 3b848424a139ff0910d6ac35877742670c612928 /src | |
| parent | 297db65fe35d79899e5f033caac2029ba5b86bbf (diff) | |
| download | rust-4866fb457a396669fc2d96a8cf5938f4cce5e162.tar.gz rust-4866fb457a396669fc2d96a8cf5938f4cce5e162.zip | |
Revert #18197
Our first attempt to make flycheck only check the current crate if the crate is one of bin/bench/test targets had caused `check_workspace` to be ignored, which should have been a config with higher precedence all along. This commit revert #18197 and closes #18562
Diffstat (limited to 'src')
| -rw-r--r-- | src/tools/rust-analyzer/crates/rust-analyzer/src/handlers/notification.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/rust-analyzer/crates/rust-analyzer/src/handlers/notification.rs b/src/tools/rust-analyzer/crates/rust-analyzer/src/handlers/notification.rs index bb03eb3c89b..49b1ba32a79 100644 --- a/src/tools/rust-analyzer/crates/rust-analyzer/src/handlers/notification.rs +++ b/src/tools/rust-analyzer/crates/rust-analyzer/src/handlers/notification.rs @@ -380,7 +380,7 @@ fn run_flycheck(state: &mut GlobalState, vfs_path: VfsPath) -> bool { if id == flycheck.id() { updated = true; match package.filter(|_| { - !world.config.flycheck_workspace(source_root_id) && target.is_some() + !world.config.flycheck_workspace(source_root_id) || target.is_some() }) { Some(package) => flycheck .restart_for_package(package, target.clone().map(TupleExt::head)), |
