Skip to content

Commit 0f370b0

Browse files
authored
Merge pull request #19407 from Veykril/push-zkvxrrktwyxp
minor: Trigger LRU eviction after cache priming finishes
2 parents 8316ffe + e4aa09f commit 0f370b0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

crates/rust-analyzer/src/main_loop.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ use std::{
1010

1111
use always_assert::always;
1212
use crossbeam_channel::{Receiver, select};
13-
use ide_db::base_db::{SourceDatabase, VfsPath};
13+
use ide_db::base_db::{SourceDatabase, VfsPath, salsa::Database as _};
1414
use lsp_server::{Connection, Notification, Request};
1515
use lsp_types::{TextDocumentIdentifier, notification::Notification as _};
1616
use stdx::thread::ThreadIntent;
@@ -364,6 +364,7 @@ impl GlobalState {
364364
fraction = 1.0;
365365
title = "Indexing";
366366

367+
self.analysis_host.raw_database_mut().trigger_lru_eviction();
367368
self.prime_caches_queue.op_completed(());
368369
if cancelled {
369370
self.prime_caches_queue

0 commit comments

Comments
 (0)