Skip to content

Commit c58548e

Browse files
authored
Merge pull request #18563 from alibektas/workspace_key_high_precedence
minor: run `FlycheckHandle::restart_workspace` when `check_workspace` true
2 parents abc7147 + 61e9c02 commit c58548e

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

crates/rust-analyzer/src/handlers/notification.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -379,9 +379,7 @@ fn run_flycheck(state: &mut GlobalState, vfs_path: VfsPath) -> bool {
379379
for (id, package) in workspace_ids.clone() {
380380
if id == flycheck.id() {
381381
updated = true;
382-
match package.filter(|_| {
383-
!world.config.flycheck_workspace(source_root_id) && target.is_some()
384-
}) {
382+
match package.filter(|_| !world.config.flycheck_workspace(source_root_id)) {
385383
Some(package) => flycheck
386384
.restart_for_package(package, target.clone().map(TupleExt::head)),
387385
None => flycheck.restart_workspace(saved_file.clone()),

0 commit comments

Comments
 (0)