aboutsummaryrefslogtreecommitdiff
path: root/editors/code/src/debug.ts
diff options
context:
space:
mode:
authorvsrs <[email protected]>2020-05-14 14:02:01 +0100
committervsrs <[email protected]>2020-05-14 14:02:01 +0100
commit20fdd14c62aa9c5327f1e6afc04f01a5af6763fb (patch)
tree162fc72991b2ed514be0649f027ba577a4b5ba80 /editors/code/src/debug.ts
parent5f6cdae18f415b9af3b3d24234ab2943efb30993 (diff)
Multiple binaries support for launch.json.
Generate unique names on the LSP side.
Diffstat (limited to 'editors/code/src/debug.ts')
-rw-r--r--editors/code/src/debug.ts5
1 files changed, 3 insertions, 2 deletions
diff --git a/editors/code/src/debug.ts b/editors/code/src/debug.ts
index 966019883..1f93a2b7e 100644
--- a/editors/code/src/debug.ts
+++ b/editors/code/src/debug.ts
@@ -88,8 +88,9 @@ export async function getDebugConfiguration(ctx: Ctx, config: ra.Runnable): Prom
88 } 88 }
89 89
90 if (debugConfig.name === "run binary") { 90 if (debugConfig.name === "run binary") {
91 // A workaround for multiple binaries. It would be better to get proper names on the LSP side. 91 // The LSP side: crates\rust-analyzer\src\main_loop\handlers.rs,
92 debugConfig.name = `run binary [${path.basename(executable)}]`; 92 // fn to_lsp_runnable(...) with RunnableKind::Bin
93 debugConfig.name = `run binary '${path.basename(executable)}'`;
93 } 94 }
94 95
95 if (debugConfig.cwd) { 96 if (debugConfig.cwd) {