Skip to content

Commit 43299f3

Browse files
fix(dev): dev menu not loading items #5972
## Problem When opening the AWS Developer Menu for toolkit, no items were showing. This is due to a wrong value being used for menu options. The second use was expecting it to be an object with keys, when it was actually a function. This happened due to a recent change that didn't catch this
1 parent 3ca78ba commit 43299f3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

packages/core/src/dev/activation.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,9 +164,10 @@ export async function activate(ctx: vscode.ExtensionContext): Promise<void> {
164164
// eslint-disable-next-line aws-toolkits/no-banned-usages
165165
globalState = targetContext.globalState
166166
targetAuth = opts.auth
167+
const options = menuOptions()
167168
void openMenu(
168-
entries(menuOptions())
169-
.filter((e) => (opts.menuOptions ?? Object.keys(menuOptions)).includes(e[0]))
169+
entries(options)
170+
.filter((e) => (opts.menuOptions ?? Object.keys(options)).includes(e[0]))
170171
.map((e) => e[1])
171172
)
172173
}),

0 commit comments

Comments
 (0)