Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Input variables only work with one configuration in a compound launch config #66801

Open
matbarker opened this issue Jan 20, 2019 · 2 comments
Open
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug debug Debug viewlet, configurations, breakpoints, adapter issues
Milestone

Comments

@matbarker
Copy link

  • VSCode Version: VSCode 1.30.2
  • OS Version: Windows 10 Pro

Steps to reproduce

  1. Create a launch.json that has two configs, each referencing an input variable
  2. Create a compound using both of those two configs
  3. Launch the compound task.

Expected: User is prompted to select input variable, input variable is passed to all configs in the compound and all tasks in the compound are run.

Actual: User is prompted to select input variable, only the last config in the compound is run.

Example launch.json:

{
            "type": "node",
            "request": "launch",
            "name": "Launch Program",
            "program": "${workspaceFolder}/hey.js",
            "env": {
                "Test": "${input:componentType}"
            }
        },
        {
            "type": "node",
            "request": "launch",
            "name": "Launch Program2",
            "program": "${workspaceFolder}/hey2.js",
            "env": {
                "Test": "${input:componentType}"
            }
        }
    ,],
    "compounds": [
        {
            "name": "Compound",
            "configurations": ["Launch Program", "Launch Program2"]
        }
    ],
    "inputs": [
        {
            "id": "componentType",
            "description": "What type of component do you want to create?",
            "default": "component",
            "type": "pickString",
            "options": ["component", "directive"]
        }
    ]
}

hey.js/hey2.js:

debugger;
console.log('foo');
@vscodebot
Copy link

vscodebot bot commented Jan 20, 2019

(Experimental duplicate detection)
Thanks for submitting this issue. Please also check if it is already covered by an existing one, like:

@weinand weinand added debug Debug viewlet, configurations, breakpoints, adapter issues bug Issue identified by VS Code Team member as probable bug labels Jan 20, 2019
@weinand
Copy link
Contributor

weinand commented Nov 10, 2020

If one launch config of a compound contains an "input variable", the succeeding launch configs are not started.

So if the "input variable" is only used in the last launch config, all launch configs are started.

@weinand weinand assigned isidorn and unassigned weinand Nov 10, 2020
@isidorn isidorn added this to the Backlog milestone Nov 10, 2020
@isidorn isidorn assigned roblourens and unassigned isidorn Aug 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue identified by VS Code Team member as probable bug debug Debug viewlet, configurations, breakpoints, adapter issues
Projects
None yet
Development

No branches or pull requests

4 participants