mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-08-28 05:27:24 +00:00
API fixes (#2438)
This commit is contained in:
parent
eda53815ab
commit
fb0dd75fe0
2 changed files with 6 additions and 12 deletions
|
|
@ -1 +1 @@
|
|||
nodejs 20.18.1
|
||||
nodejs v20.18.1
|
||||
|
|
|
|||
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue