Skip to content

Broken variable substitution in swift type of task in "task.json" #1150

Closed
@Whotakesmyname

Description

@Whotakesmyname

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions