Use new language server info on remote servers (#35682)

* Straightens out the `*_ext.rs` workflow for clangd and rust-analyzer:
no need to asynchronously query for the language server, as we sync that
information already.
* Fixes inlay hints editor menu toggle not being shown in the remote
sessions

Release Notes:

- Fixed inlay hints editor menu toggle not being shown in the remote
sessions
This commit is contained in:
Kirill Bulatov 2025-08-06 02:24:40 +03:00 committed by GitHub
parent cc93175256
commit 9caa9d042a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
14 changed files with 176 additions and 291 deletions

View file

@ -818,16 +818,6 @@ message LspResponse {
uint64 server_id = 7;
}
message LanguageServerIdForName {
uint64 project_id = 1;
uint64 buffer_id = 2;
string name = 3;
}
message LanguageServerIdForNameResponse {
optional uint64 server_id = 1;
}
message LspExtRunnables {
uint64 project_id = 1;
uint64 buffer_id = 2;

View file

@ -362,9 +362,6 @@ message Envelope {
GetDocumentSymbols get_document_symbols = 330;
GetDocumentSymbolsResponse get_document_symbols_response = 331;
LanguageServerIdForName language_server_id_for_name = 332;
LanguageServerIdForNameResponse language_server_id_for_name_response = 333;
LoadCommitDiff load_commit_diff = 334;
LoadCommitDiffResponse load_commit_diff_response = 335;
@ -424,6 +421,7 @@ message Envelope {
reserved 247 to 254;
reserved 255 to 256;
reserved 280 to 281;
reserved 332 to 333;
}
message Hello {

View file

@ -121,8 +121,6 @@ messages!(
(GetImplementationResponse, Background),
(GetLlmToken, Background),
(GetLlmTokenResponse, Background),
(LanguageServerIdForName, Background),
(LanguageServerIdForNameResponse, Background),
(OpenUnstagedDiff, Foreground),
(OpenUnstagedDiffResponse, Foreground),
(OpenUncommittedDiff, Foreground),
@ -431,7 +429,6 @@ request_messages!(
(UpdateWorktree, Ack),
(UpdateRepository, Ack),
(RemoveRepository, Ack),
(LanguageServerIdForName, LanguageServerIdForNameResponse),
(LspExtExpandMacro, LspExtExpandMacroResponse),
(LspExtOpenDocs, LspExtOpenDocsResponse),
(LspExtRunnables, LspExtRunnablesResponse),
@ -588,7 +585,6 @@ entity_messages!(
OpenServerSettings,
GetPermalinkToLine,
LanguageServerPromptRequest,
LanguageServerIdForName,
GitGetBranches,
UpdateGitBranch,
ListToolchains,