vscode-swift icon indicating copy to clipboard operation
vscode-swift copied to clipboard

Broken variable substitution in `swift` type of task in "task.json"

Open Whotakesmyname opened this issue 4 months ago • 0 comments

Describe the bug Variable substitution is broken in swift type of task in "task.json"

To Reproduce Steps to reproduce the behavior:

  1. Go to 'task.json'
  2. Add an argument e.g. "${cwd}" in args section of the task of type swift
  3. Run the task
  4. See in the terminal output, ${cwd} is printed out without being executed.

Expected behavior In VSCode documentation, it noted

only command, args, and options support variable substitution.

So args section in task.json should expand ${variable}s.

Environment

  • OS: MacOS14
  • Swift swift lang-6.0.2.1.2
  • Visual Studio Code version: 1.94.2
  • vscode-swift version: v1.11.3

Additional context N/A

Whotakesmyname avatar Oct 20 '24 07:10 Whotakesmyname