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

Commit 831280c

Browse files
committed
fix: await command result
Fix #275
1 parent f2bc6d8 commit 831280c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/commands.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ export function registerCommands$({ extensionUri }: RegisterCommandsArgs) {
1717
...COMMANDS.map(command =>
1818
commands.registerCommand(
1919
`${EXTENSION_NAMESPACE}.${command.name}`,
20-
(...args) => callback(command.callback({ extensionUri }, ...args)),
20+
async (...args) =>
21+
callback(await command.callback({ extensionUri }, ...args)),
2122
),
2223
),
2324
),

0 commit comments

Comments
 (0)