diff options
author | vsrs <[email protected]> | 2020-05-14 14:02:01 +0100 |
---|---|---|
committer | vsrs <[email protected]> | 2020-05-14 14:02:01 +0100 |
commit | 20fdd14c62aa9c5327f1e6afc04f01a5af6763fb (patch) | |
tree | 162fc72991b2ed514be0649f027ba577a4b5ba80 /editors/code | |
parent | 5f6cdae18f415b9af3b3d24234ab2943efb30993 (diff) |
Multiple binaries support for launch.json.
Generate unique names on the LSP side.
Diffstat (limited to 'editors/code')
-rw-r--r-- | editors/code/src/debug.ts | 5 |
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) { |