Skip to content

Commit 53627ed

Browse files
committed
update invoke status message and add change log
1 parent 86c19ae commit 53627ed

File tree

5 files changed

+17
-4
lines changed

5 files changed

+17
-4
lines changed

packages/core/package.nls.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,8 @@
282282
"AWS.lambda.explorerTitle": "Explorer",
283283
"AWS.lambda.local.invoke.progressTitle": "Local Invoke Function",
284284
"AWS.lambda.remote.invoke.progressTitle": "Remote Invoke Function",
285-
"AWS.lambda.invoke.succeed.statusBarMessage": "$(testing-passed-icon) Invoke succeeded: {0}",
285+
"AWS.lambda.invoke.succeeded.statusBarMessage": "$(testing-passed-icon) Invoke succeeded: {0}",
286+
"AWS.lambda.invoke.completed.statusBarMessage": "$(testing-passed-icon) Invoke completed: {0}",
286287
"AWS.lambda.invoke.failed.statusBarMessage": "$(testing-failed-icon) Invoke failed: {0}",
287288
"AWS.developerTools.explorerTitle": "Developer Tools",
288289
"AWS.codewhisperer.explorerTitle": "CodeWhisperer",

packages/core/src/lambda/vue/configEditor/samInvokeBackend.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -381,6 +381,14 @@ export class SamInvokeWebview extends VueWebview {
381381
return await vscode.debug.startDebugging(folder, finalConfig)
382382
}
383383
)
384+
vscode.window.setStatusBarMessage(
385+
localize(
386+
'AWS.lambda.invoke.completed.statusBarMessage',
387+
'$(testing-passed-icon) Invoke completed: {0}',
388+
functionName
389+
),
390+
5000
391+
)
384392
}
385393

386394
public async getLaunchConfigQuickPickItems(

packages/core/src/lambda/vue/remoteInvoke/remoteInvokeBackend.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ export class RemoteInvokeWebview extends VueWebview {
122122
vscode.window.setStatusBarMessage(
123123
result === 'Succeeded'
124124
? localize(
125-
'AWS.lambda.invoke.succeed.statusBarMessage',
125+
'AWS.lambda.invoke.succeeded.statusBarMessage',
126126
'$(testing-passed-icon) Invoke succeeded: {0}',
127127
this.data.FunctionName
128128
)

packages/core/src/test/lambda/vue/samInvokeBackend.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -583,8 +583,8 @@ describe('SamInvokeWebview', () => {
583583
await samInvokeWebview.invokeLaunchConfig(mockConfig)
584584
const messages = getTestWindow().statusBar.messages
585585
assert.strictEqual(messages.length, 2)
586-
assert.strictEqual(messages[0], 'Remote Invoke Function: testFunction')
587-
assert.strictEqual(messages[1], '$(testing-failed-icon) Invoke failed: testFunction')
586+
assert.strictEqual(messages[0], 'Local Invoke Function: foobar')
587+
assert.strictEqual(messages[1], '$(testing-passed-icon) Invoke completed: foobar')
588588

589589
assert(startDebuggingStub.called)
590590
})
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"type": "Feature",
3+
"description": "Lambda: add progress status item for Lambda invoke actions"
4+
}

0 commit comments

Comments
 (0)