File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -169,6 +169,10 @@ export class ClineProvider implements vscode.WebviewViewProvider {
169169 return this . clineStack . length
170170 }
171171
172+ public getCurrentTaskStack ( ) : string [ ] {
173+ return this . clineStack . map ( ( cline ) => cline . taskId )
174+ }
175+
172176 // remove the current task/cline instance (at the top of the stack), ao this task is finished
173177 // and resume the previous task/cline instance (if it exists)
174178 // this is used when a sub task is finished and the parent task needs to be resumed
Original file line number Diff line number Diff line change @@ -79,4 +79,8 @@ export class API extends EventEmitter<RooCodeEvents> implements RooCodeAPI {
7979 public getMessages ( taskId : string ) {
8080 return this . history . getMessages ( taskId )
8181 }
82+
83+ public getCurrentTaskStack ( ) : string [ ] {
84+ return this . provider . getCurrentTaskStack ( )
85+ }
8286}
You can’t perform that action at this time.
0 commit comments