Skip to content

Commit ee19e88

Browse files
committed
Only log Salsa holds for notifications
1 parent a104d6a commit ee19e88

1 file changed

Lines changed: 11 additions & 5 deletions

File tree

crates/ark/src/lsp/main_loop.rs

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -372,15 +372,16 @@ impl GlobalState {
372372
// handlers that mutate those still refresh explicitly.
373373
let old_revision = salsa::plumbing::current_revision(&self.world.db);
374374

375-
lsp::log_info!(
376-
"Entering handler with {n} outstanding Salsa db holds",
377-
n = self.world.db.outstanding_holds()
378-
);
375+
lsp::log_info!("Processing next event");
379376

380377
match event {
381378
Event::Lsp(msg) => match msg {
382379
LspMessage::Notification(notif) => {
383380
lsp::log_info!("{notif:#?}");
381+
lsp::log_info!(
382+
"Entering notification handler with {n} outstanding Salsa db holds",
383+
n = self.world.db.outstanding_holds()
384+
);
384385

385386
match notif {
386387
LspNotification::Initialized(_params) => {
@@ -529,7 +530,12 @@ impl GlobalState {
529530
scan,
530531
&editor_owned,
531532
);
532-
lsp::log_info!("Dispatching {n} followup scan requests", n = followups.len());
533+
lsp::log_info!(
534+
"Dispatching {n} followup scan requests with {n_holds} outstanding Salsa db holds",
535+
n = followups.len(),
536+
n_holds = self.world.db.outstanding_holds(),
537+
);
538+
533539
dispatch_scan_requests(&self.events_tx, followups);
534540

535541
// Warm the workspace index once the scan settles. Editor

0 commit comments

Comments
 (0)