You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The value of ${workspaceFolder} is expanded differently by the extension than how VSCode expands it.
Outside the extension,
It doesn't return the workspace folder the currently active file is in. It returns the workspace folder in which the task is defined microsoft/vscode#54596 (comment)
Personally I find the way VSCode expands it is more useful.
IMO it can also be used for resolving nested ${input} variables
The fact that I do not support the ${input} variable is that I don't know which .json is the source of the command (task, launch, keybindings). #45 (comment)
The text was updated successfully, but these errors were encountered:
@dyitzchaki-roku Like the comment from #45, I don't have the information that VSC has, VSC calls my command and I have no clue where it is called from. If you want the workspace folder where the task is defined you should use ${workspaceFolder:name}. Where name is the name of that workspace, as mentioned in the vscode issue 54596
@dyitzchaki-roku I can add this new variable as a synonym, because I can't supply the behavior of VSC. I might make an educated guess by analyzing all tasks.json and launch.json files and try to find the input entry used. But the simple method is to also name the workspace in the task input var used. What to do with the global defined tasks, they are not part of a workspace.
The value of
${workspaceFolder}
is expanded differently by the extension than how VSCode expands it.Outside the extension,
Personally I find the way VSCode expands it is more useful.
IMO it can also be used for resolving nested
${input}
variablesThe text was updated successfully, but these errors were encountered: