Move adapters to remote (#18359)
Release Notes: - ssh remoting: run LSP Adapters on host --------- Co-authored-by: Mikayla <mikayla@zed.dev>
This commit is contained in:
parent
40408e731e
commit
64532e94e4
10 changed files with 76 additions and 548 deletions
|
@ -283,18 +283,6 @@ message Envelope {
|
|||
CloseBuffer close_buffer = 245;
|
||||
UpdateUserSettings update_user_settings = 246;
|
||||
|
||||
CreateLanguageServer create_language_server = 247;
|
||||
|
||||
WhichCommand which_command = 248;
|
||||
WhichCommandResponse which_command_response = 249;
|
||||
|
||||
ShellEnv shell_env = 250;
|
||||
ShellEnvResponse shell_env_response = 251;
|
||||
|
||||
TryExec try_exec = 252;
|
||||
ReadTextFile read_text_file = 253;
|
||||
ReadTextFileResponse read_text_file_response = 254;
|
||||
|
||||
CheckFileExists check_file_exists = 255;
|
||||
CheckFileExistsResponse check_file_exists_response = 256; // current max
|
||||
}
|
||||
|
@ -302,6 +290,7 @@ message Envelope {
|
|||
reserved 158 to 161;
|
||||
reserved 166 to 169;
|
||||
reserved 224 to 229;
|
||||
reserved 247 to 254;
|
||||
}
|
||||
|
||||
// Messages
|
||||
|
@ -2517,67 +2506,6 @@ message UpdateUserSettings {
|
|||
string content = 2;
|
||||
}
|
||||
|
||||
message LanguageServerCommand {
|
||||
string path = 1;
|
||||
repeated string arguments = 2;
|
||||
map<string, string> env = 3;
|
||||
}
|
||||
|
||||
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 WhichCommand {
|
||||
uint64 project_id = 1;
|
||||
uint64 worktree_id = 2;
|
||||
string command = 3;
|
||||
}
|
||||
|
||||
message WhichCommandResponse {
|
||||
optional string path = 1;
|
||||
}
|
||||
|
||||
message ShellEnv {
|
||||
uint64 project_id = 1;
|
||||
uint64 worktree_id = 2;
|
||||
}
|
||||
|
||||
message ShellEnvResponse {
|
||||
map<string, string> env = 1;
|
||||
}
|
||||
|
||||
message ReadTextFile {
|
||||
uint64 project_id = 1;
|
||||
ProjectPath path = 2;
|
||||
}
|
||||
|
||||
message ReadTextFileResponse {
|
||||
string text = 1;
|
||||
}
|
||||
|
||||
message TryExec {
|
||||
uint64 project_id = 1;
|
||||
uint64 worktree_id = 2;
|
||||
LanguageServerCommand binary = 3;
|
||||
}
|
||||
|
||||
message TryExecResponse {
|
||||
string text = 1;
|
||||
}
|
||||
|
||||
message CheckFileExists {
|
||||
uint64 project_id = 1;
|
||||
string path = 2;
|
||||
|
|
|
@ -365,14 +365,6 @@ messages!(
|
|||
(FindSearchCandidatesResponse, Background),
|
||||
(CloseBuffer, Foreground),
|
||||
(UpdateUserSettings, Foreground),
|
||||
(CreateLanguageServer, Foreground),
|
||||
(WhichCommand, Foreground),
|
||||
(WhichCommandResponse, Foreground),
|
||||
(ShellEnv, Foreground),
|
||||
(ShellEnvResponse, Foreground),
|
||||
(TryExec, Foreground),
|
||||
(ReadTextFile, Foreground),
|
||||
(ReadTextFileResponse, Foreground),
|
||||
(CheckFileExists, Background),
|
||||
(CheckFileExistsResponse, Background)
|
||||
);
|
||||
|
@ -498,11 +490,6 @@ request_messages!(
|
|||
(SynchronizeContexts, SynchronizeContextsResponse),
|
||||
(LspExtSwitchSourceHeader, LspExtSwitchSourceHeaderResponse),
|
||||
(AddWorktree, AddWorktreeResponse),
|
||||
(CreateLanguageServer, Ack),
|
||||
(WhichCommand, WhichCommandResponse),
|
||||
(ShellEnv, ShellEnvResponse),
|
||||
(ReadTextFile, ReadTextFileResponse),
|
||||
(TryExec, Ack),
|
||||
(CheckFileExists, CheckFileExistsResponse)
|
||||
);
|
||||
|
||||
|
@ -577,11 +564,6 @@ entity_messages!(
|
|||
SynchronizeContexts,
|
||||
LspExtSwitchSourceHeader,
|
||||
UpdateUserSettings,
|
||||
CreateLanguageServer,
|
||||
WhichCommand,
|
||||
ShellEnv,
|
||||
TryExec,
|
||||
ReadTextFile,
|
||||
CheckFileExists,
|
||||
);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue