mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-26 21:13:37 +00:00
minor: Require both the existence of a target and check_workspace to be false to restart package-wide flycheck
This commit is contained in:
parent
2f55a91552
commit
aeed8f89a3
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