Skip to content

Commit d46ad37

Browse files
fix circular dependency
Signed-off-by: nkomonen-amazon <[email protected]>
1 parent 5965e1d commit d46ad37

File tree

1 file changed

+1
-2
lines changed
  • packages/core/src/codewhisperer/region

1 file changed

+1
-2
lines changed

packages/core/src/codewhisperer/region/utils.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ const localize = nls.loadMessageBundle()
77
import { AmazonQPromptSettings } from '../../shared/settings'
88
import { telemetry } from '../../shared/telemetry/telemetry'
99
import vscode from 'vscode'
10-
import { selectRegionProfileCommand } from '../commands/basicCommands'
1110
import { placeholder } from '../../shared/vscode/commands2'
1211
import { toastMessage } from '../commands/types'
1312

@@ -36,7 +35,7 @@ export async function notifySelectDeveloperProfile() {
3635
if (resp === selectProfile) {
3736
// Show Profile
3837
telemetry.record({ action: 'select' })
39-
void selectRegionProfileCommand.execute(placeholder, toastMessage)
38+
void vscode.commands.executeCommand('aws.amazonq.selectRegionProfile', placeholder, toastMessage)
4039
} else if (resp === dontShowAgain) {
4140
telemetry.record({ action: 'dontShowAgain' })
4241
await settings.disablePrompt(suppressId)

0 commit comments

Comments
 (0)