Skip to content

preLaunchTask on workspace configuration doesn't work #83992

Closed

Description

@alexr00

From some discussion in #83065

workspace file:

	"tasks": {
		"version": "2.0.0",
		"tasks": [
			{
				"label": "My Task",
				"type": "shell",
				"command": "dir",
				"problemMatcher": []
			},
		]
	},
	"launch": {
		"configurations": [
			{
				"type": "node",
				"request": "attach",
				"name": "Attach",
				"port": 9229,
				"skipFiles": [
					"<node_internals>/**"
				],
				"preLaunchTask": "My Task" // Does not work
			}
		],
		"compounds": [
			{
				"name": "Compound",
				"configurations": ["Attach"],
				"preLaunchTask": "My Task" // Works great
			}
		]
	}

Activity

  1. added
    debug
    bug
    on Nov 5, 2019
  2. isidorn commented on Dec 5, 2019

    @isidorn

    This was never working, thus pushing to next milestone to fix then and not takcle as part of endgame.

  3. isidorn commented on Dec 24, 2019

    @isidorn

    Alex Ross (@alexr00) thanks for the nice steps, I have pushed a fix for this. Try it out and let me know how it behaves for you. I verified with your sample and it looks fixed for me.

  4. locked and limited conversation to collaborators on Feb 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bugdebugverified

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions