Skip to content

Commit 2a366ea

Browse files
minor fix
Signed-off-by: nkomonen-amazon <[email protected]>
1 parent be904b8 commit 2a366ea

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

packages/core/src/codewhisperer/util/authUtil.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff 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
})

0 commit comments

Comments
 (0)