microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
164.9k stars 29.52k forks source link

Workspace launch configuration's preLaunchTask can't use workspace build tasks #127199

Closed 4310V343k closed 3 years ago

4310V343k commented 3 years ago

Issue Type: Bug

I have this workspace file set up ``` "launch": { "version": "0.2.0", "configurations": [ { "type": "byond", "request": "launch", "name": "Launch DreamSeeker", "preLaunchTask": "dm: build - ${command:CurrentDME}", "dmb": "${workspaceFolder}/${command:CurrentDMB}" }, { "type": "byond", "request": "launch", "name": "Launch DreamDaemon", "preLaunchTask": "dm: build - ${command:CurrentDME}", "dmb": "${workspaceFolder}/${command:CurrentDMB}", "dreamDaemon": true } ] }, "tasks": { "version": "2.0.0", "tasks": [ { "type": "dreammaker", "dme": "taucetistation.dme", "problemMatcher": [ "$dreammaker" ], "group": "build", "label": "dm: build - taucetistation.dme" } ] } ```
But after i try to use any of launch configurations, this shows up: ![image](https://user-images.githubusercontent.com/56449763/123491288-08820100-d61f-11eb-8ea4-e0dc9d36567b.png)

VS Code version: Code 1.57.1 (507ce72a4466fbb27b715c3722558bb15afa9f48, 2021-06-17T13:28:07.755Z) OS version: Windows_NT x64 10.0.19042 Restricted Mode: No

System Info |Item|Value| |---|---| |CPUs|Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz (12 x 2592)| |GPU Status|2d_canvas: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: enabled
opengl: enabled_on
rasterization: enabled
skia_renderer: enabled_on
video_decode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled| |Load (avg)|undefined| |Memory (System)|31.85GB (17.91GB free)| |Process Argv|--crash-reporter-id 977e55b8-89e5-4642-b0b4-ffe243493d75| |Screen Reader|no| |VM|0%|
Extensions (26) Extension|Author (truncated)|Version ---|---|--- better-comments|aar|2.1.0 vscode-zipfs|arc|2.3.0 npm-intellisense|chr|1.3.1 gitignore|cod|0.7.0 vscode-eslint|dba|2.1.23 gitlens|eam|11.5.1 prettier-vscode|esb|8.0.1 code-runner|for|0.11.4 byond-dm-language-support|gba|1.0.1 vscode-pull-request-github|Git|0.27.1 git-graph|mhu|1.30.0 vscode-docker|ms-|1.14.0 python|ms-|2021.6.944021595 vscode-pylance|ms-|2021.6.3 jupyter|ms-|2021.6.999662501 powershell-preview|ms-|2021.6.1 vscode-typescript-tslint-plugin|ms-|1.3.3 dm-langclient|pla|0.1.11 typescript-hero|rbb|3.0.0 LiveServer|rit|5.6.1 sharecode|Rol|0.4.1 byond|ss1|1.1.0 auto-comment-blocks|sty|1.1.1 errorlens|use|3.2.7 vscodeintellicode|Vis|1.2.14 gistfs|vsl|0.2.9 (1 theme extensions excluded)
A/B Experiments ``` vsliv368:30146709 vsreu685:30147344 python383:30185418 pythonvspyt602:30300191 vspor879:30202332 vspor708:30202333 vspor363:30204092 pythonvspyt639:30300192 pythontb:30283811 pythonvspyt551cf:30311713 vspre833:30321513 pythonptprofiler:30281270 vshan820:30294714 pythondataviewer:30285071 vscus158:30321503 pythonvsuse255:30323308 vscorehov:30309549 vscod805cf:30301675 binariesv615:30325510 vsccppwtct:30329789 ```
vscodebot[bot] commented 3 years ago

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

4310V343k commented 3 years ago

Those tasks and configurations are auto-generated and work fine when created inside of .vscode folder.

4310V343k commented 3 years ago

If i just copy the task's label inside preLaunchTask it'll still not work, so the problem is not that

4310V343k commented 3 years ago

Found something. Adding a task in .vscode folder didn't help, HOWEVER launch configurations inside that folder CAN use tasks created in workspace file