Skip to content

Commit 9511474

Browse files
committed
fix(sam): "Add SAM Debug Configuration" does nothing
Problem: "AWS: Add SAM Debug Configuration" only works the first time it is invoked. regression from 89b8a94 Solution: Move samDebugConfigCmd() out of the if-condition.
1 parent 616835a commit 9511474

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"type": "Bug Fix",
3+
"description": "`AWS: Add SAM Debug Configuration` command only works the first time it is invoked."
4+
}

src/shared/sam/activation.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@ export async function activate(ctx: ExtContext): Promise<void> {
7272
Commands.register('aws.addSamDebugConfig', async () => {
7373
if (!didActivateCodeLensProviders) {
7474
await activateSlowCodeLensesOnce()
75-
await samDebugConfigCmd()
7675
}
76+
await samDebugConfigCmd()
7777
})
7878

7979
ctx.extensionContext.subscriptions.push(

0 commit comments

Comments
 (0)