Unnamed repository; edit this file 'description' to name the repository.
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
Ali Bektas 2024-11-27
parent c0bbbb3 · commit 4a91009
-rw-r--r--crates/rust-analyzer/src/handlers/notification.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/rust-analyzer/src/handlers/notification.rs b/crates/rust-analyzer/src/handlers/notification.rs
index bb03eb3c89..49b1ba32a7 100644
--- a/crates/rust-analyzer/src/handlers/notification.rs
+++ b/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)),