Skip to content

Commit c482421

Browse files
committed
Auto merge of #18197 - alibektas:buggy_flycheck_message, r=Veykril
minor: Stricter requirements for package wide flycheck Require the existence of a target and `check_workspace` to be false to restart package-wide flycheck. Fixes #18194 , #18104
2 parents c88ea11 + aeed8f8 commit c482421

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/rust-analyzer/src/handlers/notification.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ fn run_flycheck(state: &mut GlobalState, vfs_path: VfsPath) -> bool {
380380
if id == flycheck.id() {
381381
updated = true;
382382
match package.filter(|_| {
383-
!world.config.flycheck_workspace(source_root_id) || target.is_some()
383+
!world.config.flycheck_workspace(source_root_id) && target.is_some()
384384
}) {
385385
Some(package) => flycheck
386386
.restart_for_package(package, target.clone().map(TupleExt::head)),

0 commit comments

Comments
 (0)