Skip to content

Task cannot be referenced from a launch configuration that is in a different workspace folder. #140003

@ghost

Description

  • VS Code Version: 1.63.2 (user setup)
  • OS Version: Windows_NT x64 10.0.22000

I have a global launch configuration in my user settings. I also have user level tasks in the same directory where the user settings is.
The launch configuration has preLaunch and postDebug tasks that are in the user level tasks.json. The preLaunch task works fine. The postDebug task fails and gives the following error notification.

Task <task_name> cannot be referenced from a launch configuration that is in a different workspace folder.

The task works just fine when I change it to be a preLaunch task.

A similar issue is reported #118528 previously.

Metadata

Metadata

Labels

bugIssue identified by VS Code Team member as probable bugdebugDebug viewlet, configurations, breakpoints, adapter issuesinsiders-releasedPatch has been released in VS Code InsidersverifiedVerification succeeded

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions