diff options
| author | Lukas Wirth <lukastw97@gmail.com> | 2024-12-06 13:09:32 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-12-06 13:09:32 +0000 |
| commit | 0631f460d1b2dc949efcf5958ae610a02b389000 (patch) | |
| tree | 9c5fd52fee835b0095272250e3a18a75aff8d5b7 /src/tools/rust-analyzer | |
| parent | 8466efcf728d6b07431704d72c395c8bc45af003 (diff) | |
| parent | c33c9518f0a4eed527139a9fc34459a5ca83c229 (diff) | |
| download | rust-0631f460d1b2dc949efcf5958ae610a02b389000.tar.gz rust-0631f460d1b2dc949efcf5958ae610a02b389000.zip | |
Merge pull request #18563 from alibektas/workspace_key_high_precedence
minor: run `FlycheckHandle::restart_workspace` when `check_workspace` true
Diffstat (limited to 'src/tools/rust-analyzer')
| -rw-r--r-- | src/tools/rust-analyzer/crates/rust-analyzer/src/handlers/notification.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/tools/rust-analyzer/crates/rust-analyzer/src/handlers/notification.rs b/src/tools/rust-analyzer/crates/rust-analyzer/src/handlers/notification.rs index bb03eb3c89b..5e7262b14ca 100644 --- a/src/tools/rust-analyzer/crates/rust-analyzer/src/handlers/notification.rs +++ b/src/tools/rust-analyzer/crates/rust-analyzer/src/handlers/notification.rs @@ -379,9 +379,7 @@ fn run_flycheck(state: &mut GlobalState, vfs_path: VfsPath) -> bool { for (id, package) in workspace_ids.clone() { if id == flycheck.id() { updated = true; - match package.filter(|_| { - !world.config.flycheck_workspace(source_root_id) && target.is_some() - }) { + match package.filter(|_| !world.config.flycheck_workspace(source_root_id)) { Some(package) => flycheck .restart_for_package(package, target.clone().map(TupleExt::head)), None => flycheck.restart_workspace(saved_file.clone()), |
