remote: Fix toolchain RPC messages not being handled because of the entity getting dropped (#36665)

Release Notes:

- N/A
This commit is contained in:
Piotr Osiewicz 2025-08-21 11:37:45 +02:00 committed by Orual
parent 097dec4bc4
commit 005c8dc4f6
No known key found for this signature in database
3 changed files with 49 additions and 39 deletions

View file

@ -46,6 +46,9 @@ pub struct HeadlessProject {
pub languages: Arc<LanguageRegistry>,
pub extensions: Entity<HeadlessExtensionStore>,
pub git_store: Entity<GitStore>,
// Used mostly to keep alive the toolchain store for RPC handlers.
// Local variant is used within LSP store, but that's a separate entity.
pub _toolchain_store: Entity<ToolchainStore>,
}
pub struct HeadlessAppState {
@ -269,6 +272,7 @@ impl HeadlessProject {
languages,
extensions,
git_store,
_toolchain_store: toolchain_store,
}
}