-
Notifications
You must be signed in to change notification settings - Fork 509
Description
Brief Issue Summary
If I have a "launch {}" section in my workspace file, and a .vscode/launch.json file, the "Run and Debug" tab lists all the launch targets from both sources in the pulldown.
However, if I try to debug a ctest target from the "Testing" tab, when it provides a pulldown to select a target, it shows duplicate targets from .vscode/launch.json. If I remove .vscode/launch.json it will show targets from the workspace file.
This also applies to the new setting "cmake.ctest.debugLaunchTarget", It won't allow me to use a target from the workspace file, if .vscode/launch.json is present.
Workspace showing the issue (please open the workspace file, not the folder): ctest_issue.zip
Pulldown after pressing "Debug Test" button on "test1":

This shows the targets from launch.json twice, but says 2 of them are in the workspace, from the path underneath. If I try to select one from the workspace, it actually selects one from launch.json.
CMake Tools Diagnostics
{
"os": "linux",
"vscodeVersion": "1.104.3",
"cmtVersion": "1.21.36",
....
"settings": [
{
"communicationMode": "automatic",
"useCMakePresets": "always",
"configureOnOpen": false
}
]
}Debug Log
N/AAdditional Information
No response
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
