Skip to content

Commit af7c50f

Browse files
committed
Multiple binaries support for launch.json.
1 parent a233346 commit af7c50f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

editors/code/src/debug.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,11 @@ export async function getDebugConfiguration(ctx: Ctx, config: ra.Runnable): Prom
8787
}
8888
}
8989

90+
if (debugConfig.name === "run binary") {
91+
// A workaround for multiple binaries. It would be better to get proper names on the LSP side.
92+
debugConfig.name = `run binary [${path.basename(executable)}]`;
93+
}
94+
9095
if (debugConfig.cwd) {
9196
debugConfig.cwd = simplifyPath(debugConfig.cwd);
9297
}

0 commit comments

Comments
 (0)