File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ import { Auth } from './auth'
4646import { validateIsNewSsoUrl , validateSsoUrlFormat } from './sso/validation'
4747import { getLogger } from '../shared/logger/logger'
4848import { AuthFormId } from '../login/webview/vue/types'
49- import { AuthUtil } from '../codewhisperer/util/authUtil'
49+ import { amazonQScopes , AuthUtil } from '../codewhisperer/util/authUtil'
5050import { extensionVersion } from '../shared/vscode/env'
5151import { CommonAuthWebview } from '../login/webview/vue/backend'
5252import { AuthSource } from '../login/webview/util'
@@ -793,6 +793,9 @@ export function getAuthFormIdsFromConnection(conn?: Connection): AuthFormId[] {
793793 if ( isValidCodeCatalystConnection ( conn ) ) {
794794 authIds . push ( `${ connType } CodeCatalyst` )
795795 }
796+ if ( hasScopes ( conn , amazonQScopes ) ) {
797+ authIds . push ( `${ connType } CodeWhisperer` )
798+ }
796799
797800 return authIds
798801}
You can’t perform that action at this time.
0 commit comments