Skip to content

Commit fa4c794

Browse files
committed
undo merge change
1 parent 44392b4 commit fa4c794

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

src/core/task/Task.ts

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -303,17 +303,6 @@ export class Task extends EventEmitter<TaskEvents> implements TaskLike {
303303
this.instanceId = crypto.randomUUID().slice(0, 8)
304304
this.taskNumber = -1
305305

306-
// Initialize workspacePath FIRST before any code that uses this.cwd
307-
// This MUST happen before creating RooIgnoreController or RooProtectedController
308-
const defaultPath = path.join(os.homedir(), "Desktop")
309-
const workspaceFromVSCode = getWorkspacePath(defaultPath)
310-
311-
// Ensure workspacePath is never undefined or empty - use the VSCode workspace or fallback
312-
// Check for both undefined and empty string from parentTask
313-
const parentWorkspace = parentTask?.workspacePath
314-
this.workspacePath = parentWorkspace && parentWorkspace.trim() !== "" ? parentWorkspace : workspaceFromVSCode
315-
316-
// Now create controllers with properly initialized workspacePath
317306
this.rooIgnoreController = new RooIgnoreController(this.cwd)
318307
this.rooProtectedController = new RooProtectedController(this.cwd)
319308
this.fileContextTracker = new FileContextTracker(provider, this.taskId)

0 commit comments

Comments
 (0)