Skip to content

Commit 99de851

Browse files
committed
minor: Require both the existence of a target and check_workspace to be false to restart package-wide flycheck
1 parent 316a15c commit 99de851

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tools/rust-analyzer/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)