Skip to content

Commit

Permalink
move state.process_changes() outside of the condition
Browse files Browse the repository at this point in the history
  • Loading branch information
davidbarsky committed Nov 15, 2023
1 parent 9bbac8a commit 243d25e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion crates/rust-analyzer/src/handlers/notification.rs
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,8 @@ pub(crate) fn handle_run_flycheck(
pub(crate) fn run_unindexed_project(state: &mut GlobalState, uri: lsp_types::Url) {
let _p = profile::span("run_unindexed_project");

if state.is_quiescent() && state.process_changes() {
if state.is_quiescent() {
tracing::debug!(processed_changes = state.process_changes());
let id = from_proto::file_id(&state.snapshot(), &uri).expect("Unable to get file ID");
if let Ok(crates) = state.snapshot().analysis.crates_for(id) {
if crates.is_empty() {
Expand Down

0 comments on commit 243d25e

Please sign in to comment.