@@ -40,7 +40,7 @@ export class AwsExplorer implements vscode.TreeDataProvider<AWSTreeNodeBase>, Re
40
40
private readonly regionProvider : RegionProvider ,
41
41
private readonly resourceFetcher : ResourceFetcher ,
42
42
private readonly getExtensionAbsolutePath : ( relativeExtensionPath : string ) => string ,
43
- private readonly lambdaOutputChannel : vscode . OutputChannel = vscode . window . createOutputChannel ( 'AWS Lambda' ) ,
43
+ private readonly lambdaOutputChannel : vscode . OutputChannel = vscode . window . createOutputChannel ( 'AWS Lambda' )
44
44
) {
45
45
this . _onDidChangeTreeData = new vscode . EventEmitter < AWSTreeNodeBase | undefined > ( )
46
46
this . onDidChangeTreeData = this . _onDidChangeTreeData . event
@@ -55,12 +55,13 @@ export class AwsExplorer implements vscode.TreeDataProvider<AWSTreeNodeBase>, Re
55
55
56
56
registerCommand ( {
57
57
command : 'aws.deleteLambda' ,
58
- callback : async ( node : LambdaFunctionNode ) => await deleteLambda ( {
59
- deleteParams : { functionName : node . configuration . FunctionName || '' } ,
60
- lambdaClient : ext . toolkitClientBuilder . createLambdaClient ( node . regionCode ) ,
61
- outputChannel : this . lambdaOutputChannel ,
62
- onRefresh : ( ) => this . refresh ( node . parent )
63
- } ) ,
58
+ callback : async ( node : LambdaFunctionNode ) =>
59
+ await deleteLambda ( {
60
+ deleteParams : { functionName : node . configuration . FunctionName || '' } ,
61
+ lambdaClient : ext . toolkitClientBuilder . createLambdaClient ( node . regionCode ) ,
62
+ outputChannel : this . lambdaOutputChannel ,
63
+ onRefresh : ( ) => this . refresh ( node . parent )
64
+ } ) ,
64
65
telemetryName : {
65
66
namespace : TelemetryNamespace . Lambda ,
66
67
name : 'delete'
@@ -69,10 +70,8 @@ export class AwsExplorer implements vscode.TreeDataProvider<AWSTreeNodeBase>, Re
69
70
70
71
registerCommand ( {
71
72
command : 'aws.deleteCloudFormation' ,
72
- callback : async ( node : CloudFormationStackNode ) => await deleteCloudFormation (
73
- ( ) => this . refresh ( node . parent ) ,
74
- node
75
- ) ,
73
+ callback : async ( node : CloudFormationStackNode ) =>
74
+ await deleteCloudFormation ( ( ) => this . refresh ( node . parent ) , node ) ,
76
75
telemetryName : {
77
76
namespace : TelemetryNamespace . Cloudformation ,
78
77
name : 'delete'
@@ -86,12 +85,13 @@ export class AwsExplorer implements vscode.TreeDataProvider<AWSTreeNodeBase>, Re
86
85
87
86
registerCommand ( {
88
87
command : 'aws.invokeLambda' ,
89
- callback : async ( node : FunctionNodeBase ) => await invokeLambda ( {
90
- awsContext : this . awsContext ,
91
- element : node ,
92
- outputChannel : this . lambdaOutputChannel ,
93
- resourceFetcher : this . resourceFetcher
94
- } ) ,
88
+ callback : async ( node : FunctionNodeBase ) =>
89
+ await invokeLambda ( {
90
+ awsContext : this . awsContext ,
91
+ functionNode : node ,
92
+ outputChannel : this . lambdaOutputChannel ,
93
+ resourceFetcher : this . resourceFetcher
94
+ } ) ,
95
95
telemetryName : {
96
96
namespace : TelemetryNamespace . Lambda ,
97
97
name : 'invokeremote'
@@ -134,7 +134,7 @@ export class AwsExplorer implements vscode.TreeDataProvider<AWSTreeNodeBase>, Re
134
134
'Unable to load Lambda Functions, click here to retry'
135
135
) ,
136
136
'aws.refreshAwsExplorerNode' ,
137
- [ this , element ] ,
137
+ [ this , element ]
138
138
)
139
139
]
140
140
}
@@ -148,7 +148,8 @@ export class AwsExplorer implements vscode.TreeDataProvider<AWSTreeNodeBase>, Re
148
148
localize ( 'AWS.explorerNode.signIn' , 'Connect to AWS...' ) ,
149
149
'aws.login' ,
150
150
undefined ,
151
- localize ( 'AWS.explorerNode.signIn.tooltip' , 'Connect to AWS using a credential profile' ) )
151
+ localize ( 'AWS.explorerNode.signIn.tooltip' , 'Connect to AWS using a credential profile' )
152
+ )
152
153
]
153
154
}
154
155
@@ -159,10 +160,10 @@ export class AwsExplorer implements vscode.TreeDataProvider<AWSTreeNodeBase>, Re
159
160
this . regionNodes ,
160
161
intersection ( regionMap . keys ( ) , explorerRegionCodes ) ,
161
162
key => this . regionNodes . get ( key ) ! . update ( regionMap . get ( key ) ! ) ,
162
- key => new DefaultRegionNode (
163
- regionMap . get ( key ) ! ,
164
- relativeExtensionPath => this . getExtensionAbsolutePath ( relativeExtensionPath )
165
- )
163
+ key =>
164
+ new DefaultRegionNode ( regionMap . get ( key ) ! , relativeExtensionPath =>
165
+ this . getExtensionAbsolutePath ( relativeExtensionPath )
166
+ )
166
167
)
167
168
168
169
if ( this . regionNodes . size > 0 ) {
@@ -174,7 +175,8 @@ export class AwsExplorer implements vscode.TreeDataProvider<AWSTreeNodeBase>, Re
174
175
localize ( 'AWS.explorerNode.addRegion' , 'Click to add a region to view functions...' ) ,
175
176
'aws.showRegion' ,
176
177
undefined ,
177
- localize ( 'AWS.explorerNode.addRegion.tooltip' , 'Configure a region to show available functions' ) )
178
+ localize ( 'AWS.explorerNode.addRegion.tooltip' , 'Configure a region to show available functions' )
179
+ )
178
180
]
179
181
}
180
182
}
0 commit comments