SshLspAdapterDelegate (#17965)

Release Notes:

- N/A
This commit is contained in:
Conrad Irwin 2024-09-17 14:13:37 -06:00 committed by GitHub
parent 7814dd0301
commit 8cc6df573c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 268 additions and 148 deletions

View file

@ -289,7 +289,11 @@ message Envelope {
WhichCommandResponse which_command_response = 249;
ShellEnv shell_env = 250;
ShellEnvResponse shell_env_response = 251; // current max
ShellEnvResponse shell_env_response = 251;
TryExec try_exec = 252;
ReadTextFile read_text_file = 253;
ReadTextFileResponse read_text_file_response = 254; // current max
}
reserved 158 to 161;
@ -2551,13 +2555,21 @@ message ShellEnvResponse {
map<string, string> env = 1;
}
// message RestartLanguageServer {
message ReadTextFile {
uint64 project_id = 1;
ProjectPath path = 2;
}
// }
// message DestroyLanguageServer {
message ReadTextFileResponse {
string text = 1;
}
// }
message TryExec {
uint64 project_id = 1;
uint64 worktree_id = 2;
LanguageServerCommand binary = 3;
}
// message LspWorkspaceConfiguration {
// }
message TryExecResponse {
string text = 1;
}

View file

@ -370,6 +370,9 @@ messages!(
(WhichCommandResponse, Foreground),
(ShellEnv, Foreground),
(ShellEnvResponse, Foreground),
(TryExec, Foreground),
(ReadTextFile, Foreground),
(ReadTextFileResponse, Foreground)
);
request_messages!(
@ -495,7 +498,9 @@ request_messages!(
(AddWorktree, AddWorktreeResponse),
(CreateLanguageServer, Ack),
(WhichCommand, WhichCommandResponse),
(ShellEnv, ShellEnvResponse)
(ShellEnv, ShellEnvResponse),
(ReadTextFile, ReadTextFileResponse),
(TryExec, Ack),
);
entity_messages!(
@ -571,7 +576,9 @@ entity_messages!(
UpdateUserSettings,
CreateLanguageServer,
WhichCommand,
ShellEnv
ShellEnv,
TryExec,
ReadTextFile
);
entity_messages!(