Skip to content

Commit 10239f0

Browse files
celestial-vaultElephant Lumps
andauthored
Migrate showAccountViewClicked protobus (RooCodeInc#3787)
* Stop tracking auto-generated files, respect .gitignore * migrate showAccountViewClicked --------- Co-authored-by: Elephant Lumps <[email protected]>
1 parent 9f1b01b commit 10239f0

File tree

4 files changed

+7
-8
lines changed

4 files changed

+7
-8
lines changed

.changeset/eight-feet-sip.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"claude-dev": minor
3+
---
4+
5+
Migrate showAccountViewClicked to protobus

src/core/controller/index.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -308,10 +308,6 @@ export class Controller {
308308
vscode.env.openExternal(vscode.Uri.parse(message.url))
309309
}
310310
break
311-
case "showAccountViewClicked": {
312-
await this.postMessageToWebview({ type: "action", action: "accountButtonClicked" })
313-
break
314-
}
315311
case "fetchUserCreditsData": {
316312
await this.fetchUserCreditsData()
317313
break

src/shared/WebviewMessage.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ export interface WebviewMessage {
1616
| "openInBrowser"
1717
| "showChatView"
1818
| "requestVsCodeLmModels"
19-
| "showAccountViewClicked"
2019
| "authStateChanged"
2120
| "authCallback"
2221
| "fetchMcpMarketplace"

webview-ui/src/components/settings/ClineAccountInfoCard.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
import { VSCodeButton } from "@vscode/webview-ui-toolkit/react"
22
import { useFirebaseAuth } from "@/context/FirebaseAuthContext"
3-
import { vscode } from "@/utils/vscode"
43
import { useExtensionState } from "@/context/ExtensionStateContext"
54
import { AccountServiceClient } from "@/services/grpc-client"
65
import { EmptyRequest } from "@shared/proto/common"
76

87
export const ClineAccountInfoCard = () => {
98
const { user: firebaseUser, handleSignOut } = useFirebaseAuth()
10-
const { userInfo, apiConfiguration } = useExtensionState()
9+
const { userInfo, apiConfiguration, navigateToAccount } = useExtensionState()
1110

1211
let user = apiConfiguration?.clineApiKey ? firebaseUser || userInfo : undefined
1312

@@ -18,7 +17,7 @@ export const ClineAccountInfoCard = () => {
1817
}
1918

2019
const handleShowAccount = () => {
21-
vscode.postMessage({ type: "showAccountViewClicked" })
20+
navigateToAccount()
2221
}
2322

2423
return (

0 commit comments

Comments
 (0)