Skip to content
This repository has been archived by the owner on Oct 15, 2024. It is now read-only.

Commit

Permalink
fix: await command result
Browse files Browse the repository at this point in the history
Fix #275
  • Loading branch information
seanwu1105 committed Feb 16, 2023
1 parent f2bc6d8 commit 831280c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ export function registerCommands$({ extensionUri }: RegisterCommandsArgs) {
...COMMANDS.map(command =>
commands.registerCommand(
`${EXTENSION_NAMESPACE}.${command.name}`,
(...args) => callback(command.callback({ extensionUri }, ...args)),
async (...args) =>
callback(await command.callback({ extensionUri }, ...args)),
),
),
),
Expand Down

0 comments on commit 831280c

Please sign in to comment.