mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 11:31:15 +00:00
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
This commit is contained in:
commit
c482421316
@ -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…
x
Reference in New Issue
Block a user