File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ import { Ec2Instance, Ec2Client } from '../shared/clients/ec2Client'
11
11
import { copyToClipboard } from '../shared/utilities/messages'
12
12
import { getAwsConsoleUrl } from '../shared/awsConsole'
13
13
import { openUrl } from '../shared/utilities/vsCodeUtils'
14
- import globals from '../shared/extensionGlobals '
14
+ import { showRegionPrompter } from '../auth/utils '
15
15
16
16
export async function refreshExplorer ( node ?: Ec2Node ) {
17
17
await node ?. refreshNode ( )
@@ -51,7 +51,7 @@ export async function rebootInstance(node?: Ec2Node) {
51
51
}
52
52
53
53
export async function linkToLaunchInstance ( node ?: Ec2Node ) {
54
- const region = node ? node . regionCode : globals . regionProvider . guessDefaultRegion ( )
54
+ const region = node ? node . regionCode : ( await showRegionPrompter ( 'Select Region' , '' ) ) . id
55
55
const url = getAwsConsoleUrl ( 'ec2-launch' , region )
56
56
await openUrl ( url )
57
57
}
You can’t perform that action at this time.
0 commit comments