mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-09-07 08:26:51 +00:00
Expose task IDs on the Cline stack
This commit is contained in:
parent
677e145a56
commit
3b5b34012f
2 changed files with 8 additions and 0 deletions
|
|
@ -169,6 +169,10 @@ export class ClineProvider implements vscode.WebviewViewProvider {
|
|||
return this.clineStack.length
|
||||
}
|
||||
|
||||
public getCurrentTaskStack(): string[] {
|
||||
return this.clineStack.map((cline) => cline.taskId)
|
||||
}
|
||||
|
||||
// remove the current task/cline instance (at the top of the stack), ao this task is finished
|
||||
// and resume the previous task/cline instance (if it exists)
|
||||
// this is used when a sub task is finished and the parent task needs to be resumed
|
||||
|
|
|
|||
|
|
@ -79,4 +79,8 @@ export class API extends EventEmitter<RooCodeEvents> implements RooCodeAPI {
|
|||
public getMessages(taskId: string) {
|
||||
return this.history.getMessages(taskId)
|
||||
}
|
||||
|
||||
public getCurrentTaskStack(): string[] {
|
||||
return this.provider.getCurrentTaskStack()
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue