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 GitHub
parent 62f2ef86dc
commit 7f1bd2f15e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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,
}
}