mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-09-11 22:51:26 +00:00
undo merge change
This commit is contained in:
parent
44392b4f3c
commit
fa4c7942d6
1 changed files with 0 additions and 11 deletions
|
|
@ -303,17 +303,6 @@ export class Task extends EventEmitter<TaskEvents> implements TaskLike {
|
|||
this.instanceId = crypto.randomUUID().slice(0, 8)
|
||||
this.taskNumber = -1
|
||||
|
||||
// Initialize workspacePath FIRST before any code that uses this.cwd
|
||||
// This MUST happen before creating RooIgnoreController or RooProtectedController
|
||||
const defaultPath = path.join(os.homedir(), "Desktop")
|
||||
const workspaceFromVSCode = getWorkspacePath(defaultPath)
|
||||
|
||||
// Ensure workspacePath is never undefined or empty - use the VSCode workspace or fallback
|
||||
// Check for both undefined and empty string from parentTask
|
||||
const parentWorkspace = parentTask?.workspacePath
|
||||
this.workspacePath = parentWorkspace && parentWorkspace.trim() !== "" ? parentWorkspace : workspaceFromVSCode
|
||||
|
||||
// Now create controllers with properly initialized workspacePath
|
||||
this.rooIgnoreController = new RooIgnoreController(this.cwd)
|
||||
this.rooProtectedController = new RooProtectedController(this.cwd)
|
||||
this.fileContextTracker = new FileContextTracker(provider, this.taskId)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue