mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-10-08 03:07:53 +00:00
minor rebase changes
This commit is contained in:
parent
f8732f3166
commit
5e123800ac
3 changed files with 5 additions and 29 deletions
|
|
@ -2267,12 +2267,7 @@ export class ClineProvider
|
|||
return
|
||||
}
|
||||
|
||||
await ExtensionBridgeService.handleRemoteControlState(
|
||||
userInfo,
|
||||
enabled,
|
||||
{ ...bridgeConfig, provider: this as any, sessionId: vscode.env.sessionId },
|
||||
(message: string) => this.log(message),
|
||||
)
|
||||
const userInfo = CloudService.instance.getUserInfo()
|
||||
|
||||
if (!userInfo) {
|
||||
this.log("[ClineProvider#remoteControlEnabled] Failed to get user info, disconnecting")
|
||||
|
|
|
|||
|
|
@ -191,29 +191,6 @@ export async function activate(context: vscode.ExtensionContext) {
|
|||
)
|
||||
}
|
||||
|
||||
const postStateListener = () => ClineProvider.getVisibleInstance()?.postStateToWebview()
|
||||
|
||||
cloudService.on("auth-state-changed", postStateListener)
|
||||
cloudService.on("settings-updated", postStateListener)
|
||||
|
||||
cloudService.on("user-info", async ({ userInfo }) => {
|
||||
postStateListener()
|
||||
|
||||
const bridgeConfig = await cloudService.cloudAPI?.bridgeConfig().catch(() => undefined)
|
||||
|
||||
if (!bridgeConfig) {
|
||||
outputChannel.appendLine("[CloudService] Failed to get bridge config")
|
||||
return
|
||||
}
|
||||
|
||||
ExtensionBridgeService.handleRemoteControlState(
|
||||
userInfo,
|
||||
contextProxy.getValue("remoteControlEnabled"),
|
||||
{ ...bridgeConfig, provider: provider as any, sessionId: vscode.env.sessionId },
|
||||
(message: string) => outputChannel.appendLine(message),
|
||||
)
|
||||
})
|
||||
|
||||
// Add to subscriptions for proper cleanup on deactivate.
|
||||
context.subscriptions.push(cloudService)
|
||||
|
||||
|
|
|
|||
|
|
@ -10,6 +10,10 @@ import type {
|
|||
MarketplaceItem,
|
||||
TodoItem,
|
||||
ModelInfo,
|
||||
OrganizationAllowList,
|
||||
CloudUserInfo,
|
||||
ShareVisibility,
|
||||
QueuedMessage,
|
||||
} from "@roo-code/types"
|
||||
|
||||
import { GitCommit } from "../utils/git"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue