Skip to content

fix(debug): pass workspace folder to startDebugging#38

Open
david-s-svedberg wants to merge 1 commit into
malvex:masterfrom
david-s-svedberg:fix/prelaunch-task-workspace-folder
Open

fix(debug): pass workspace folder to startDebugging#38
david-s-svedberg wants to merge 1 commit into
malvex:masterfrom
david-s-svedberg:fix/prelaunch-task-workspace-folder

Conversation

@david-s-svedberg

Copy link
Copy Markdown

debug_startSession called vscode.debug.startDebugging(undefined, config).
With an undefined workspace folder, VS Code can't resolve a configuration's
preLaunchTask (tasks are folder-scoped), so launching any config that has a
preLaunchTask fails with "Could not find the task '...'".

Fix: read the launch config scoped to the first workspace folder and pass that
folder to startDebugging. Single-root only.

Adds a regression test backed by an explicit task in the test workspace.

Without it VS Code can't resolve a config's preLaunchTask. Adds a regression test.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant