File tree Expand file tree Collapse file tree 3 files changed +18
-6
lines changed
Expand file tree Collapse file tree 3 files changed +18
-6
lines changed Original file line number Diff line number Diff line change @@ -133,14 +133,14 @@ export class API extends EventEmitter<RooCodeEvents> implements RooCodeAPI {
133133 }
134134
135135 public async resumeTask ( taskId : string ) : Promise < void > {
136- const { historyItem } = await this . provider . getTaskWithId ( taskId )
137- await this . provider . initClineWithHistoryItem ( historyItem )
138- await this . provider . postMessageToWebview ( { type : "action" , action : "chatButtonClicked" } )
136+ const { historyItem } = await this . sidebarProvider . getTaskWithId ( taskId )
137+ await this . sidebarProvider . initClineWithHistoryItem ( historyItem )
138+ await this . sidebarProvider . postMessageToWebview ( { type : "action" , action : "chatButtonClicked" } )
139139 }
140140
141141 public async isTaskInHistory ( taskId : string ) : Promise < boolean > {
142142 try {
143- await this . provider . getTaskWithId ( taskId )
143+ await this . sidebarProvider . getTaskWithId ( taskId )
144144 return true
145145 } catch {
146146 return false
Original file line number Diff line number Diff line change @@ -27,6 +27,20 @@ export interface RooCodeAPI extends EventEmitter<RooCodeEvents> {
2727 newTab ?: boolean
2828 } ) : Promise < string >
2929
30+ /**
31+ * Resumes a task with the given ID.
32+ * @param taskId The ID of the task to resume.
33+ * @throws Error if the task is not found in the task history.
34+ */
35+ resumeTask ( taskId : string ) : Promise < void >
36+
37+ /**
38+ * Checks if a task with the given ID is in the task history.
39+ * @param taskId The ID of the task to check.
40+ * @returns True if the task is in the task history, false otherwise.
41+ */
42+ isTaskInHistory ( taskId : string ) : Promise < boolean >
43+
3044 /**
3145 * Returns the current task stack.
3246 * @returns An array of task IDs.
Original file line number Diff line number Diff line change @@ -557,14 +557,12 @@ interface RooCodeAPI extends EventEmitter<RooCodeEvents> {
557557 * @throws Error if the task is not found in the task history.
558558 */
559559 resumeTask ( taskId : string ) : Promise < void >
560-
561560 /**
562561 * Checks if a task with the given ID is in the task history.
563562 * @param taskId The ID of the task to check.
564563 * @returns True if the task is in the task history, false otherwise.
565564 */
566565 isTaskInHistory ( taskId : string ) : Promise < boolean >
567-
568566 /**
569567 * Returns the current task stack.
570568 * @returns An array of task IDs.
You can’t perform that action at this time.
0 commit comments