toolchains: Add support for relative paths (#27777)
Closes #ISSUE Release Notes: - N/A
This commit is contained in:
parent
627ae7af6f
commit
edf712d45b
12 changed files with 178 additions and 93 deletions
|
@ -1273,10 +1273,10 @@ impl Workspace {
|
|||
};
|
||||
|
||||
let toolchains = DB.toolchains(workspace_id).await?;
|
||||
for (toolchain, worktree_id) in toolchains {
|
||||
for (toolchain, worktree_id, path) in toolchains {
|
||||
project_handle
|
||||
.update(cx, |this, cx| {
|
||||
this.activate_toolchain(worktree_id, toolchain, cx)
|
||||
this.activate_toolchain(ProjectPath { worktree_id, path }, toolchain, cx)
|
||||
})?
|
||||
.await;
|
||||
}
|
||||
|
@ -6319,10 +6319,10 @@ pub fn open_ssh_project(
|
|||
})?;
|
||||
|
||||
let toolchains = DB.toolchains(workspace_id).await?;
|
||||
for (toolchain, worktree_id) in toolchains {
|
||||
for (toolchain, worktree_id, path) in toolchains {
|
||||
project
|
||||
.update(cx, |this, cx| {
|
||||
this.activate_toolchain(worktree_id, toolchain, cx)
|
||||
this.activate_toolchain(ProjectPath { worktree_id, path }, toolchain, cx)
|
||||
})?
|
||||
.await;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue