This commit is contained in:
Chris Estreich 2025-04-09 08:20:17 -07:00 committed by GitHub
parent eda53815ab
commit fb0dd75fe0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 6 additions and 12 deletions

View file

@ -1 +1 @@
nodejs 20.18.1
nodejs v20.18.1

View file

@ -16,7 +16,6 @@ import { outputChannelLog } from "./log"
export class API extends EventEmitter<RooCodeEvents> implements RooCodeAPI {
private readonly outputChannel: vscode.OutputChannel
private readonly sidebarProvider: ClineProvider
private tabProvider?: ClineProvider
private readonly context: vscode.ExtensionContext
private readonly ipc?: IpcServer
private readonly taskMap = new Map<string, ClineProvider>()
@ -100,13 +99,11 @@ export class API extends EventEmitter<RooCodeEvents> implements RooCodeAPI {
await vscode.commands.executeCommand("workbench.action.files.revert")
await vscode.commands.executeCommand("workbench.action.closeAllEditors")
if (!this.tabProvider) {
this.tabProvider = await openClineInNewTab({ context: this.context, outputChannel: this.outputChannel })
this.registerListeners(this.tabProvider)
}
provider = this.tabProvider
provider = await openClineInNewTab({ context: this.context, outputChannel: this.outputChannel })
this.registerListeners(provider)
} else {
await vscode.commands.executeCommand("roo-cline.SidebarProvider.focus")
provider = this.sidebarProvider
}
@ -234,10 +231,7 @@ export class API extends EventEmitter<RooCodeEvents> implements RooCodeAPI {
throw new Error(`Profile with name "${name}" does not exist`)
}
await this.setConfiguration({
...currentSettings,
currentApiConfigName: profile.name,
})
await this.setConfiguration({ ...currentSettings, currentApiConfigName: profile.name })
}
public getActiveProfile() {