Skip to content

Commit

Permalink
fix(codecatalyst): don't display onboard node when using existing con…
Browse files Browse the repository at this point in the history
…nection (#4988)
  • Loading branch information
hayemaxi committed May 15, 2024
1 parent 0537ebc commit 974b188
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/core/src/codecatalyst/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,13 +84,17 @@ export class CodeCatalystAuthenticationProvider {
this.onDidChangeActiveConnection(async () => {
if (this.activeConnection) {
await this.setScopeExpired(this.activeConnection, false)
await this.isConnectionOnboarded(this.activeConnection, true)
}
await setCodeCatalystConnectedContext(this.isConnectionValid())
this.onDidChangeEmitter.fire()
})

this.onAccessDeniedException(async (showReauthPrompt: boolean) => {
await this.accessDeniedExceptionHandler(showReauthPrompt)
if (this.activeConnection) {
await this.isConnectionOnboarded(this.activeConnection, true)
}
this.onDidChangeEmitter.fire()
})

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"type": "Bug Fix",
"description": "CodeCatalyst: No longer display a prompt to 'Onboard' if re-using an existing connection from Amazon Q and it is already onboarded."
}

0 comments on commit 974b188

Please sign in to comment.