ssh: Fix abs paths in file history & repeated go-to-def (#19027)
This fixes two things: - Go-to-def to absolute paths (i.e. opening stdlib files) multiple times (opening, dropping, and re-opening worktrees) - Re-opening abs paths from the file picker history that were added there by go-to-def Release Notes: - N/A --------- Co-authored-by: Bennet <bennet@zed.dev>
This commit is contained in:
parent
4726f30bd6
commit
1691652948
6 changed files with 145 additions and 74 deletions
|
@ -282,7 +282,9 @@ message Envelope {
|
|||
CheckFileExists check_file_exists = 255;
|
||||
CheckFileExistsResponse check_file_exists_response = 256;
|
||||
|
||||
ShutdownRemoteServer shutdown_remote_server = 257; // current max
|
||||
ShutdownRemoteServer shutdown_remote_server = 257;
|
||||
|
||||
RemoveWorktree remove_worktree = 258; // current max
|
||||
}
|
||||
|
||||
reserved 87 to 88;
|
||||
|
@ -2432,6 +2434,7 @@ message GetLlmTokenResponse {
|
|||
message AddWorktree {
|
||||
uint64 project_id = 2;
|
||||
string path = 1;
|
||||
bool visible = 3;
|
||||
}
|
||||
|
||||
message AddWorktreeResponse {
|
||||
|
@ -2460,3 +2463,7 @@ message CheckFileExistsResponse {
|
|||
}
|
||||
|
||||
message ShutdownRemoteServer {}
|
||||
|
||||
message RemoveWorktree {
|
||||
uint64 worktree_id = 1;
|
||||
}
|
||||
|
|
|
@ -364,6 +364,7 @@ messages!(
|
|||
(CheckFileExists, Background),
|
||||
(CheckFileExistsResponse, Background),
|
||||
(ShutdownRemoteServer, Foreground),
|
||||
(RemoveWorktree, Foreground),
|
||||
);
|
||||
|
||||
request_messages!(
|
||||
|
@ -486,7 +487,8 @@ request_messages!(
|
|||
(LspExtSwitchSourceHeader, LspExtSwitchSourceHeaderResponse),
|
||||
(AddWorktree, AddWorktreeResponse),
|
||||
(CheckFileExists, CheckFileExistsResponse),
|
||||
(ShutdownRemoteServer, Ack)
|
||||
(ShutdownRemoteServer, Ack),
|
||||
(RemoveWorktree, Ack)
|
||||
);
|
||||
|
||||
entity_messages!(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue