From af7c50f8a2e6763d4d72d0fa0b33e62b12aaf1c7 Mon Sep 17 00:00:00 2001 From: vsrs Date: Thu, 14 May 2020 13:48:02 +0300 Subject: Multiple binaries support for launch.json. --- editors/code/src/debug.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/editors/code/src/debug.ts b/editors/code/src/debug.ts index b500fe029..966019883 100644 --- a/editors/code/src/debug.ts +++ b/editors/code/src/debug.ts @@ -87,6 +87,11 @@ export async function getDebugConfiguration(ctx: Ctx, config: ra.Runnable): Prom } } + if (debugConfig.name === "run binary") { + // A workaround for multiple binaries. It would be better to get proper names on the LSP side. + debugConfig.name = `run binary [${path.basename(executable)}]`; + } + if (debugConfig.cwd) { debugConfig.cwd = simplifyPath(debugConfig.cwd); } -- cgit v1.2.3