diff options
Diffstat (limited to 'packages/core/src/code_assist/codeAssist.ts')
| -rw-r--r-- | packages/core/src/code_assist/codeAssist.ts | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/packages/core/src/code_assist/codeAssist.ts b/packages/core/src/code_assist/codeAssist.ts index 80d95ca9..5f3f843e 100644 --- a/packages/core/src/code_assist/codeAssist.ts +++ b/packages/core/src/code_assist/codeAssist.ts @@ -14,8 +14,11 @@ export async function createCodeAssistContentGenerator( authType: AuthType, sessionId?: string, ): Promise<ContentGenerator> { - if (authType === AuthType.LOGIN_WITH_GOOGLE) { - const authClient = await getOauthClient(); + if ( + authType === AuthType.LOGIN_WITH_GOOGLE || + authType === AuthType.CLOUD_SHELL + ) { + const authClient = await getOauthClient(authType); const projectId = await setupUser(authClient); return new CodeAssistServer(authClient, projectId, httpOptions, sessionId); } |
