toolchains: Add support for relative paths (#27777)

Closes #ISSUE

Release Notes:

- N/A
This commit is contained in:
Piotr Osiewicz
2025-03-31 19:48:09 +02:00
committed by GitHub
parent 627ae7af6f
commit edf712d45b
12 changed files with 178 additions and 93 deletions
+4 -4
View File
@@ -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;
}