vscode-edge-devtools icon indicating copy to clipboard operation
vscode-edge-devtools copied to clipboard

preLaunchTask is never run when using vscode-edge-devtools.debug

Open gvillenave opened this issue 3 years ago • 4 comments

Environment (please complete the following information):

  • OS (e.g., Windows 10): MacOS 11.6.2
  • Extension version (e.g., 1.2.3): 1.4.2

Describe the bug:

When using the vscode-edge-devtools.debug type in a configuration in launch.json, the preLaunchTask is never actually executed, and the Edge debugger opens right away without running anything first. This repros with npm and shell tasks (defined in tasks.json). The behavior is fixed by using pwa-msedge instead.

Repro steps:

  1. Create a task in .vscode/tasks.json
  2. Add a preLaunchTask property into a vscode-edge-devtools.debug launch configuration in .vscode/launch.json referencing the task label
  3. Run the debug config

Expected behavior:

The specific preLaunchTask should run before the Edge debugger extension. It doesn't.

Additional context:

Related to #501

gvillenave avatar Feb 01 '22 02:02 gvillenave

Thanks for flagging that up, we'll look into it.

codepo8 avatar Feb 01 '22 10:02 codepo8

same here

ZouYouShun avatar Aug 06 '22 05:08 ZouYouShun

I can verify that I also have experienced this issue. You can use compound launch configurations to kind of get around it, but it's not something I'd rely on.

e: Another thing to note, postLaunchTask does not seem to be functional either.

frigvid avatar Sep 15 '22 20:09 frigvid

same here

konabuta avatar Mar 26 '24 18:03 konabuta