parent
7814dd0301
commit
8cc6df573c
8 changed files with 268 additions and 148 deletions
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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!(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue