File tree Expand file tree Collapse file tree 2 files changed +3
-10
lines changed Expand file tree Collapse file tree 2 files changed +3
-10
lines changed Original file line number Diff line number Diff line change @@ -24,19 +24,12 @@ export async function activate(ctx: ExtContext): Promise<void> {
24
24
} )
25
25
} ) ,
26
26
27
- Commands . register ( 'aws.ec2.openRemoteConnection' , async ( node ?: Ec2InstanceNode ) => {
28
- const selection = node ? node . toSelection ( ) : await promptUserForEc2Selection ( )
29
- const connectionManager = new Ec2ConnectionManager ( selection . region )
30
-
31
- await connectionManager . attemptToOpenRemoteConnection ( selection )
32
- } ) ,
33
-
34
27
Commands . register ( 'aws.ec2.copyInstanceId' , async ( node : Ec2InstanceNode ) => {
35
28
await copyTextCommand ( node , 'id' )
36
29
} ) ,
37
30
38
31
Commands . register ( 'aws.ec2.openRemoteConnection' , async ( node ?: Ec2Node ) => {
39
- await ( node ? openRemoteConnection ( node ) : openRemoteConnection ( node ) )
32
+ await openRemoteConnection ( node )
40
33
} )
41
34
)
42
35
}
Original file line number Diff line number Diff line change @@ -18,8 +18,8 @@ export async function openTerminal(node?: Ec2Node) {
18
18
19
19
export async function openRemoteConnection ( node ?: Ec2Node ) {
20
20
const selection = node instanceof Ec2InstanceNode ? node . toSelection ( ) : await promptUserForEc2Selection ( )
21
- // const connectionManager = new Ec2ConnectionManager(selection.region)
22
- console . log ( selection )
21
+ const connectionManager = new Ec2ConnectionManager ( selection . region )
22
+ await connectionManager . attemptToOpenRemoteConnection ( selection )
23
23
}
24
24
25
25
export async function copyInstanceId ( instanceId : string ) : Promise < void > {
You can’t perform that action at this time.
0 commit comments