From 6d524e42b3af9fdf2dd97ac2ca19a086f96664b9 Mon Sep 17 00:00:00 2001 From: Blaine Bublitz Date: Thu, 10 Aug 2023 11:49:58 -0700 Subject: [PATCH] fix: Accept multiple arguments for a registered command --- src/extension.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/extension.ts b/src/extension.ts index c81972f..48599a2 100644 --- a/src/extension.ts +++ b/src/extension.ts @@ -163,7 +163,7 @@ function registerCommands(uri: Uri) { for (let { type, command, group } of INTERNAL_COMMANDS) { let internalName = `${type}.${command}`; let displayName = `${type} ${command}`; - let command$ = commands.registerCommand(internalName, async (args) => { + let command$ = commands.registerCommand(internalName, async (...args) => { let task = new Task( { type, command }, TaskScope.Workspace,