mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-14 06:03:58 +00:00
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
This commit is contained in:
parent
c0bbbb3e5d
commit
4a910095da
1 changed files with 1 additions and 1 deletions
|
@ -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)),
|
||||
|
|
Loading…
Reference in a new issue