aboutsummaryrefslogtreecommitdiff
path: root/editors/code/src
diff options
context:
space:
mode:
authorvsrs <[email protected]>2020-05-14 11:48:02 +0100
committervsrs <[email protected]>2020-05-14 11:48:02 +0100
commitaf7c50f8a2e6763d4d72d0fa0b33e62b12aaf1c7 (patch)
tree4a2ede9323e924cb51b74cb8da92a3e4da2a145d /editors/code/src
parenta233346a2d08bde9869d86d14e67ca3290c10cb2 (diff)
Multiple binaries support for launch.json.
Diffstat (limited to 'editors/code/src')
-rw-r--r--editors/code/src/debug.ts5
1 files changed, 5 insertions, 0 deletions
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
87 } 87 }
88 } 88 }
89 89
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
90 if (debugConfig.cwd) { 95 if (debugConfig.cwd) {
91 debugConfig.cwd = simplifyPath(debugConfig.cwd); 96 debugConfig.cwd = simplifyPath(debugConfig.cwd);
92 } 97 }