Skip to content

Commit c2ec3d9

Browse files
committed
fix: use console.log in Task.dispose to satisfy unit test
1 parent 78c2173 commit c2ec3d9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/core/task/Task.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1388,7 +1388,7 @@ export class Task extends EventEmitter<TaskEvents> implements TaskLike {
13881388

13891389
public dispose(): void {
13901390
// Disposing task
1391-
this.providerRef.deref()?.log(`[Task] disposing task ${this.taskId}.${this.instanceId}`)
1391+
console.log(`[Task] disposing task ${this.taskId}.${this.instanceId}`)
13921392

13931393
// Remove all event listeners to prevent memory leaks
13941394
try {
@@ -2633,4 +2633,4 @@ export class Task extends EventEmitter<TaskEvents> implements TaskLike {
26332633
public get taskAsk(): ClineMessage | undefined {
26342634
return this.idleAsk || this.resumableAsk || this.interactiveAsk
26352635
}
2636-
}
2636+
}

0 commit comments

Comments
 (0)