Properly open worktrees when cmd-clicking in terminal or on inlay hints (#19280)
* uses the state that's synced, to fetch the language server name * uses proper, canonicalized path when creating a remote ssh worktree, otherwise `~/foo/something` stays unexpanded Release Notes: - N/A
This commit is contained in:
parent
bcdb10b3cb
commit
834d50f0db
6 changed files with 43 additions and 47 deletions
|
@ -275,7 +275,7 @@ impl HeadlessProject {
|
|||
let worktree = this
|
||||
.update(&mut cx.clone(), |this, _| {
|
||||
Worktree::local(
|
||||
Arc::from(canonicalized),
|
||||
Arc::from(canonicalized.as_path()),
|
||||
message.payload.visible,
|
||||
this.fs.clone(),
|
||||
this.next_entry_id.clone(),
|
||||
|
@ -287,6 +287,7 @@ impl HeadlessProject {
|
|||
let response = this.update(&mut cx, |_, cx| {
|
||||
worktree.update(cx, |worktree, _| proto::AddWorktreeResponse {
|
||||
worktree_id: worktree.id().to_proto(),
|
||||
canonicalized_path: canonicalized.to_string_lossy().to_string(),
|
||||
})
|
||||
})?;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue