From a0f60d384b7afcbd49f93e145a2242eae79a8e2c Mon Sep 17 00:00:00 2001 From: Marcel Robitaille Date: Thu, 7 Nov 2024 20:18:36 +0100 Subject: [PATCH] Add workspaceFolder to executeCommand Fix #116 --- CHANGELOG.md | 1 + src/lib/VariableResolver.ts | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 56780b4..b455851 100755 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/src/lib/VariableResolver.ts b/src/lib/VariableResolver.ts index f43bd52..2016c37 100644 --- a/src/lib/VariableResolver.ts +++ b/src/lib/VariableResolver.ts @@ -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; }