File tree Expand file tree Collapse file tree 1 file changed +0
-11
lines changed Expand file tree Collapse file tree 1 file changed +0
-11
lines changed Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments