-
Notifications
You must be signed in to change notification settings - Fork 450
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Duplicated launch targets #863
Comments
I can still see the duplicated entries in 1.2.1. |
I tried to reconstruct the dublicate entries. But I don´t see it. Are this duplicate launch configurations or execution targets? When is the dialog shown? How does the launch configuration looks like? And which tool versions are used? |
When I click on "Debug" on the status bar. I have been observing this for a while now in a project I have. I may need investigate some more. Here I clicked: [all] "Set the active target to build" on the status bar. Here I clicked: [Debug] "Select target to launch" on the status bar. |
@KoeMai This is puzzling. I have just one add_executable in the source. Also that other library ThirdParty/glad also appears twice. Edit: The library glad appears three times in the outline actually. |
The duplication of targets in the outline happens because I have multiple The structure was:
I don't think that my |
The CMake server returns a list of
And the extension just puts them into the Outliner: updateCodeModel(model: cms.CodeModelContent|null, exCtx: {launchTargetName: string|null, defaultTargetName: string}) {
if (!model || model.configurations.length < 1) {
return;
}
this._codeModel = model;
const config = model.configurations[0];
const updates: BaseNode[] = [];
const new_children: BaseNode[] = [];
for (const pr of config.projects) {
const item = new ProjectNode(pr.name);
item.update(pr, {...exCtx, nodesToUpdate: updates});
new_children.push(item);
}
this._children = new_children;
this._changeEvent.fire(null);
for (const node of updates) {
this._changeEvent.fire(node);
}
} The CMake server returns all sub-branches of the project tree as a list of projects.
|
A simple sample project: |
Thanks for the example. I created a PR for this. |
Ha, I spoke too soon. I only fixed the build selector. I need to fix the launch one too. |
Maybe this is fixed already but I am unable to find such issue.
Whenever I need to select a launch target I see duplicated entries:
Maybe whenever there is just one target in the project it should be selected by default and no select popup menu should be displayed.
The text was updated successfully, but these errors were encountered: