Skip to content

Commit f7d464a

Browse files
authored
Add request param to accountLoginClicked. (RooCodeInc#3471)
All the handlers need to have the same signature f(controller, request), otherwise the typechecker will be unhappy when setting up the gRPC server.
1 parent a6c4c0c commit f7d464a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/core/controller/account/accountLoginClicked.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import * as vscode from "vscode"
22
import crypto from "crypto"
33
import { Controller } from "../index"
44
import { storeSecret } from "../../storage/state"
5-
import { String } from "../../../shared/proto/common"
5+
import { EmptyRequest, String } from "../../../shared/proto/common"
66

77
/**
88
* Handles the user clicking the login link in the UI.
@@ -12,7 +12,7 @@ import { String } from "../../../shared/proto/common"
1212
* @param controller The controller instance.
1313
* @returns The login URL as a string.
1414
*/
15-
export async function accountLoginClicked(controller: Controller): Promise<String> {
15+
export async function accountLoginClicked(controller: Controller, unused: EmptyRequest): Promise<String> {
1616
// Generate nonce for state validation
1717
const nonce = crypto.randomBytes(32).toString("hex")
1818
await storeSecret(controller.context, "authNonce", nonce)

0 commit comments

Comments
 (0)