about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorLukas Wirth <lukastw97@gmail.com>2025-03-21 09:29:42 +0000
committerGitHub <noreply@github.com>2025-03-21 09:29:42 +0000
commitcc8aa3a29d90b02bbbfb6d754102ecbe19b6f76d (patch)
tree6db720bdd2625bbaafb9bc7f00860602b3af70e5 /src
parent7e1610e723f121a1bea229568d1aa2be42d62176 (diff)
parent93d62b543daa185c2cb2025dbec92225cde49fd4 (diff)
downloadrust-cc8aa3a29d90b02bbbfb6d754102ecbe19b6f76d.tar.gz
rust-cc8aa3a29d90b02bbbfb6d754102ecbe19b6f76d.zip
Merge pull request #19407 from Veykril/push-zkvxrrktwyxp
minor: Trigger LRU eviction after cache priming finishes
Diffstat (limited to 'src')
-rw-r--r--src/tools/rust-analyzer/crates/rust-analyzer/src/main_loop.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/tools/rust-analyzer/crates/rust-analyzer/src/main_loop.rs b/src/tools/rust-analyzer/crates/rust-analyzer/src/main_loop.rs
index 7caf18e926d..9cc990eec06 100644
--- a/src/tools/rust-analyzer/crates/rust-analyzer/src/main_loop.rs
+++ b/src/tools/rust-analyzer/crates/rust-analyzer/src/main_loop.rs
@@ -10,7 +10,7 @@ use std::{
 
 use always_assert::always;
 use crossbeam_channel::{Receiver, select};
-use ide_db::base_db::{SourceDatabase, VfsPath};
+use ide_db::base_db::{SourceDatabase, VfsPath, salsa::Database as _};
 use lsp_server::{Connection, Notification, Request};
 use lsp_types::{TextDocumentIdentifier, notification::Notification as _};
 use stdx::thread::ThreadIntent;
@@ -364,6 +364,7 @@ impl GlobalState {
                             fraction = 1.0;
                             title = "Indexing";
 
+                            self.analysis_host.raw_database_mut().trigger_lru_eviction();
                             self.prime_caches_queue.op_completed(());
                             if cancelled {
                                 self.prime_caches_queue