Skip to content

Commit

Permalink
fix(dev): dev menu not loading items #5972
Browse files Browse the repository at this point in the history
## 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
  • Loading branch information
nkomonen-amazon authored Nov 11, 2024
1 parent 3ca78ba commit 43299f3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/core/src/dev/activation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -164,9 +164,10 @@ export async function activate(ctx: vscode.ExtensionContext): Promise<void> {
// eslint-disable-next-line aws-toolkits/no-banned-usages
globalState = targetContext.globalState
targetAuth = opts.auth
const options = menuOptions()
void openMenu(
entries(menuOptions())
.filter((e) => (opts.menuOptions ?? Object.keys(menuOptions)).includes(e[0]))
entries(options)
.filter((e) => (opts.menuOptions ?? Object.keys(options)).includes(e[0]))
.map((e) => e[1])
)
}),
Expand Down

0 comments on commit 43299f3

Please sign in to comment.