use ssh lsp store (#17655)

Release Notes:

- ssh remoting: Added support for booting langauge servers (in limited
circumstances)

---------

Co-authored-by: Mikayla <mikayla@zed.dev>
This commit is contained in:
Conrad Irwin 2024-09-10 15:51:01 -04:00 committed by GitHub
parent 130f19d8f9
commit 36eb1c15ea
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
45 changed files with 1553 additions and 671 deletions

View file

@ -281,7 +281,9 @@ message Envelope {
FindSearchCandidatesResponse find_search_candidates_response = 244;
CloseBuffer close_buffer = 245;
UpdateUserSettings update_user_settings = 246; // current max
UpdateUserSettings update_user_settings = 246;
CreateLanguageServer create_language_server = 247; // current max
}
reserved 158 to 161;
@ -2497,3 +2499,36 @@ message UpdateUserSettings {
uint64 project_id = 1;
string content = 2;
}
message LanguageServerCommand {
string path = 1;
repeated string arguments = 2;
}
message AvailableLanguage {
string name = 7;
string matcher = 8;
}
message CreateLanguageServer {
uint64 project_id = 1;
uint64 worktree_id = 2;
string name = 3;
LanguageServerCommand binary = 4;
optional string initialization_options = 5;
optional string code_action_kinds = 6;
AvailableLanguage language = 7;
}
// message RestartLanguageServer {
// }
// message DestroyLanguageServer {
// }
// message LspWorkspaceConfiguration {
// }

View file

@ -366,7 +366,8 @@ messages!(
(FindSearchCandidates, Background),
(FindSearchCandidatesResponse, Background),
(CloseBuffer, Foreground),
(UpdateUserSettings, Foreground)
(UpdateUserSettings, Foreground),
(CreateLanguageServer, Foreground)
);
request_messages!(
@ -490,6 +491,7 @@ request_messages!(
(SynchronizeContexts, SynchronizeContextsResponse),
(LspExtSwitchSourceHeader, LspExtSwitchSourceHeaderResponse),
(AddWorktree, AddWorktreeResponse),
(CreateLanguageServer, Ack)
);
entity_messages!(
@ -562,7 +564,8 @@ entity_messages!(
UpdateContext,
SynchronizeContexts,
LspExtSwitchSourceHeader,
UpdateUserSettings
UpdateUserSettings,
CreateLanguageServer
);
entity_messages!(