File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
packages/core/src/codewhisperer/util Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -411,6 +411,7 @@ export class AuthUtil {
411411 } )
412412 }
413413
414+ /** Notify the user they need to select a Developer Profile */
414415 public async notifySelectProfile ( ) {
415416 const suppressId = 'amazonQSelectDeveloperProfile'
416417 const settings = AmazonQPromptSettings . instance
@@ -428,15 +429,17 @@ export class AuthUtil {
428429
429430 await telemetry . toolkit_showNotification . run ( async ( ) => {
430431 telemetry . record ( { id : 'mustSelectDeveloperProfileMessage' } )
431- void vscode . window . showInformationMessage ( message , selectProfile , dontShowAgain ) . then ( async ( resp ) => {
432+ void vscode . window . showWarningMessage ( message , selectProfile , dontShowAgain ) . then ( async ( resp ) => {
432433 await telemetry . toolkit_invokeAction . run ( async ( ) => {
433434 if ( resp === selectProfile ) {
434435 // Show Profile
435436 telemetry . record ( { action : 'select' } )
436437 void selectRegionProfileCommand . execute ( placeholder , toastMessage )
437- } else {
438- telemetry . record ( { action : 'dismiss ' } )
438+ } else if ( resp === dontShowAgain ) {
439+ telemetry . record ( { action : 'dontShowAgain ' } )
439440 await settings . disablePrompt ( suppressId )
441+ } else {
442+ telemetry . record ( { action : 'ignore' } )
440443 }
441444 } )
442445 } )
You can’t perform that action at this time.
0 commit comments