Skip to content

Commit 243d25e

Browse files
committed
move state.process_changes() outside of the condition
1 parent 9bbac8a commit 243d25e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

+2-1
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,8 @@ pub(crate) fn handle_run_flycheck(
352352
pub(crate) fn run_unindexed_project(state: &mut GlobalState, uri: lsp_types::Url) {
353353
let _p = profile::span("run_unindexed_project");
354354

355-
if state.is_quiescent() && state.process_changes() {
355+
if state.is_quiescent() {
356+
tracing::debug!(processed_changes = state.process_changes());
356357
let id = from_proto::file_id(&state.snapshot(), &uri).expect("Unable to get file ID");
357358
if let Ok(crates) = state.snapshot().analysis.crates_for(id) {
358359
if crates.is_empty() {

0 commit comments

Comments
 (0)