@@ -125,13 +125,11 @@ export class API extends EventEmitter<RooCodeEvents> implements RooCodeAPI {
125125 let provider : ClineProvider
126126
127127 if ( newTab ) {
128- // await vscode.commands.executeCommand("workbench.action.closeAllEditors")
128+ await vscode . commands . executeCommand ( "workbench.action.closeAllEditors" )
129129
130130 if ( ! this . tabProvider ) {
131- this . log ( `[API#startNewTask] -> openClineInNewTab` )
132131 this . tabProvider = await openClineInNewTab ( { context : this . context , outputChannel : this . outputChannel } )
133132 this . registerListeners ( this . tabProvider )
134- this . log ( `[API#startNewTask] <- openClineInNewTab` )
135133 }
136134
137135 provider = this . tabProvider
@@ -140,32 +138,21 @@ export class API extends EventEmitter<RooCodeEvents> implements RooCodeAPI {
140138 }
141139
142140 if ( configuration ) {
143- this . log ( `[API#startNewTask] -> setValues ${ JSON . stringify ( configuration ) } ` )
144141 await provider . setValues ( configuration )
145- this . log ( `[API#startNewTask] <- setValues ${ JSON . stringify ( configuration ) } ` )
146142
147143 if ( configuration . allowedCommands ) {
148- this . log ( `[API#startNewTask] -> setAllowedCommands ${ JSON . stringify ( configuration . allowedCommands ) } ` )
149-
150144 await vscode . workspace
151145 . getConfiguration ( "roo-cline" )
152146 . update ( "allowedCommands" , configuration . allowedCommands , vscode . ConfigurationTarget . Global )
153-
154- this . log ( `[API#startNewTask] setAllowedCommands ${ JSON . stringify ( configuration . allowedCommands ) } ` )
155147 }
156148 }
157149
158- this . log ( `[API#startNewTask] -> removeClineFromStack` )
159150 await provider . removeClineFromStack ( )
160151 await provider . postStateToWebview ( )
161152 await provider . postMessageToWebview ( { type : "action" , action : "chatButtonClicked" } )
162153 await provider . postMessageToWebview ( { type : "invoke" , invoke : "newChat" , text, images } )
163- this . log ( `[API#startNewTask] <- removeClineFromStack` )
164154
165- this . log ( `[API#startNewTask] -> initClineWithTask` )
166155 const { taskId } = await provider . initClineWithTask ( text , images )
167- this . log ( `[API#startNewTask] <- initClineWithTask` )
168-
169156 return taskId
170157 }
171158
0 commit comments