SSH Remoting: Add the ability to resolve file paths on the remote host (#18250)

Release Notes:

- N/A
This commit is contained in:
Mikayla Maki 2024-09-23 15:47:25 -07:00 committed by GitHub
parent d989183f94
commit 20c06545b6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 119 additions and 33 deletions

View file

@ -293,7 +293,10 @@ message Envelope {
TryExec try_exec = 252;
ReadTextFile read_text_file = 253;
ReadTextFileResponse read_text_file_response = 254; // current max
ReadTextFileResponse read_text_file_response = 254;
CheckFileExists check_file_exists = 255;
CheckFileExistsResponse check_file_exists_response = 256; // current max
}
reserved 158 to 161;
@ -2574,3 +2577,13 @@ message TryExec {
message TryExecResponse {
string text = 1;
}
message CheckFileExists {
uint64 project_id = 1;
string path = 2;
}
message CheckFileExistsResponse {
bool exists = 1;
string path = 2;
}

View file

@ -372,7 +372,9 @@ messages!(
(ShellEnvResponse, Foreground),
(TryExec, Foreground),
(ReadTextFile, Foreground),
(ReadTextFileResponse, Foreground)
(ReadTextFileResponse, Foreground),
(CheckFileExists, Background),
(CheckFileExistsResponse, Background)
);
request_messages!(
@ -501,6 +503,7 @@ request_messages!(
(ShellEnv, ShellEnvResponse),
(ReadTextFile, ReadTextFileResponse),
(TryExec, Ack),
(CheckFileExists, CheckFileExistsResponse)
);
entity_messages!(
@ -578,7 +581,8 @@ entity_messages!(
WhichCommand,
ShellEnv,
TryExec,
ReadTextFile
ReadTextFile,
CheckFileExists,
);
entity_messages!(