Skip to content

Commit c5f6a33

Browse files
authored
Merge "amazonq: disable in cloud9"
2 parents dfb65a8 + 39ee065 commit c5f6a33

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/codewhisperer/util/authUtil.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ export async function getChatAuthState(cwAuth = AuthUtil.instance): Promise<Feat
377377
return buildFeatureAuthState(AuthStates.disconnected)
378378
}
379379
if (!isSsoConnection(currentConnection)) {
380-
throw new ToolkitError(`Connection is not a valid type: ${currentConnection}`)
380+
throw new ToolkitError(`Connection "${currentConnection.id}" is not a valid type: ${currentConnection.type}`)
381381
}
382382

383383
// The state of the connection may not have been properly validated

src/extension.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -262,9 +262,10 @@ export async function activate(context: vscode.ExtensionContext) {
262262

263263
await activateSchemas(extContext)
264264

265-
await activateCWChat(extContext.extensionContext)
266-
267-
await activateQGumby(extContext)
265+
if (!isCloud9()) {
266+
await activateCWChat(extContext.extensionContext)
267+
await activateQGumby(extContext)
268+
}
268269

269270
await activateStepFunctions(context, awsContext, toolkitOutputChannel)
270271

0 commit comments

Comments
 (0)