Skip to content

Commit b94ce5d

Browse files
committed
use full target name in testDebugHandler
this is required when targets exist twice, e.g. due to subprojects Signed-off-by: Jannik Glückert <jannik.glueckert@gmail.com>
1 parent b5f8f3e commit b94ce5d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/tests.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import * as os from "os";
22
import * as vscode from "vscode";
3-
import { ExecResult, exec, extensionConfiguration } from "./utils";
3+
import { ExecResult, exec, extensionConfiguration, getTargetName } from "./utils";
44
import { Targets, Test, Tests, DebugEnvironmentConfiguration } from "./types";
55
import { getMesonTests, getMesonTargets } from "./introspection";
66
import { workspaceState } from "./extension";
@@ -156,9 +156,9 @@ export async function testDebugHandler(
156156
relevantTests.some((test) => test.depends.some((dep) => dep == target.id)),
157157
);
158158

159-
var args = ["compile", "-C", buildDir];
160-
requiredTargets.forEach((target) => {
161-
args.push(target.name);
159+
let args = ["compile", "-C", buildDir];
160+
requiredTargets.forEach(async (target) => {
161+
args.push(await getTargetName(target));
162162
});
163163

164164
try {

0 commit comments

Comments
 (0)