mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-11-10 23:24:29 +00:00
Multiple binaries support for launch.json.
This commit is contained in:
parent
a233346a2d
commit
af7c50f8a2
1 changed files with 5 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue