Skip to content

Commit 4866fb4

Browse files
committed
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
1 parent 297db65 commit 4866fb4

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)