Show Git-created worktrees in external discovery (#7078)

This commit is contained in:
Brennan Benson
2026-07-02 11:24:07 -07:00
committed by GitHub
parent 1ac6de1ccb
commit 4c03924618
9 changed files with 209 additions and 100 deletions
+1 -6
View File
@@ -14713,13 +14713,9 @@ export class OrcaRuntimeService {
)
if (!registeredWorktree) {
let canCleanOrphanedDirectory = false
const knownOrcaLayouts = buildKnownOrcaWorkspaceLayouts(store.getSettings(), repo)
if (
canCleanupUnregisteredOrcaWorktreeDirectory({
meta: removedMeta,
worktreePath: removalTarget.path,
repo,
knownOrcaLayouts
meta: removedMeta
})
) {
if (repo.connectionId) {
@@ -14792,7 +14788,6 @@ export class OrcaRuntimeService {
runtimeWorktreePath,
repo,
runtimeRepoPath: toLocalWorktreeRuntimePath(repo.path, localWorktreeGitOptions),
knownOrcaLayouts,
registeredWorktrees,
statPath: access.statPath,
isGitRepository: (path) => isLocalRuntimeGitRepository(path, localWorktreeGitOptions)