Skip to content

Commit

Permalink
feat: Qt slots now also have a link to their cpp file
Browse files Browse the repository at this point in the history
  • Loading branch information
iamsergio committed Apr 24, 2024
1 parent d87db29 commit d319386
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,10 @@ class KDABQtTest {
});

for (let slot of testExecutable.slots) {
const subitem = controller.createTestItem(slot.id, slot.name);
/// We just use the same URI as the parent, as vscode doesn't support line:column in urls
let slotUri = testExecutable.vscodeTestItem.uri;

const subitem = controller.createTestItem(slot.id, slot.name, slotUri);
slot.vscodeTestItem = subitem;
item.children.add(subitem);
this.individualTestMap.set(subitem, slot);
Expand Down

0 comments on commit d319386

Please sign in to comment.