Skip to content

Commit

Permalink
fix: Accept multiple arguments for a registered command (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
phated authored Aug 11, 2023
1 parent d901967 commit 0185ff4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 0185ff4

Please sign in to comment.