@@ -46,7 +46,7 @@ import { CancellationError } from '../../../shared/utilities/timeoutUtils'
46
46
import { validateSsoUrl , validateSsoUrlFormat } from '../../sso/validation'
47
47
import { debounce } from '../../../shared/utilities/functionUtils'
48
48
import { AuthError , ServiceItemId , isServiceItemId , userCancelled } from './types'
49
- import { awsIdSignIn } from '../../../codewhisperer/util/showSsoPrompt'
49
+ import { awsIdSignIn , showCodeWhispererConnectionPrompt } from '../../../codewhisperer/util/showSsoPrompt'
50
50
import { connectToEnterpriseSso } from '../../../codewhisperer/util/getStartUrl'
51
51
import { trustedDomainCancellation } from '../../sso/model'
52
52
import { FeatureId , CredentialSourceId , Result , telemetry } from '../../../shared/telemetry/telemetry'
@@ -741,16 +741,20 @@ export type AuthSource = (typeof AuthSources)[keyof typeof AuthSources]
741
741
export const showManageConnections = Commands . declare (
742
742
{ id : showConnectionsPageCommand , compositeKey : { 1 : 'source' } } ,
743
743
( context : vscode . ExtensionContext ) => ( _ : VsCodeCommandArg , source : AuthSource , serviceToShow ?: ServiceItemId ) => {
744
+ if ( _ !== placeholder ) {
745
+ source = 'vscodeComponent'
746
+ }
747
+
744
748
// The auth webview page does not make sense to use in C9,
745
749
// so show the auth quick pick instead.
746
750
if ( isCloud9 ( 'any' ) ) {
751
+ if ( source . toLowerCase ( ) . includes ( 'codewhisperer' ) ) {
752
+ // Show CW specific quick pick for CW connections
753
+ return showCodeWhispererConnectionPrompt ( )
754
+ }
747
755
return addConnection . execute ( )
748
756
}
749
757
750
- if ( _ !== placeholder ) {
751
- source = 'vscodeComponent'
752
- }
753
-
754
758
if ( ! isServiceItemId ( serviceToShow ) ) {
755
759
serviceToShow = undefined
756
760
}
0 commit comments