Skip to content

Commit

Permalink
Merge pull request #120 from augustocdias/task/116
Browse files Browse the repository at this point in the history
Add workspaceFolder to executeCommand
  • Loading branch information
MarcelRobitaille authored Nov 9, 2024
2 parents ecc1244 + a0f60d3 commit cd9fcfc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
- Fix default value not recorded for useFirstResult / useSingleResult (#117)
- Add support for ${taskId:} input variables
- Do not reset user input context (#95)
- Add workspaceFolder to executeCommand (#116)

## [1.12.4] 2024-10-03

Expand Down
3 changes: 2 additions & 1 deletion src/lib/VariableResolver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,8 @@ export class VariableResolver {
return '';
}
const command = match[1];
const result = await vscode.commands.executeCommand(command);
const result = await vscode.commands.executeCommand(
command, { workspaceFolder: this.bindConfiguration("workspaceFolder") });
return result as string;
}

Expand Down

0 comments on commit cd9fcfc

Please sign in to comment.