mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 11:31:15 +00:00
Merge pull request #18563 from alibektas/workspace_key_high_precedence
minor: run `FlycheckHandle::restart_workspace` when `check_workspace` true
This commit is contained in:
commit
c58548e92e
@ -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()),
|
||||
|
Loading…
x
Reference in New Issue
Block a user