Uniformed way to get Debug Lens target executable.

This commit is contained in:
vsrs 2020-05-06 16:01:35 +03:00
parent 1116c9a0e9
commit c4ca6e29c2
2 changed files with 37 additions and 28 deletions

View file

@ -108,10 +108,12 @@ export class Config {
}
get debug() {
// "/rustc/<id>" used by suggestions only.
const { ["/rustc/<id>"]: _, ...sourceFileMap } = this.get<Record<string, string>>("debug.sourceFileMap");
return {
engine: this.get<string>("debug.engine"),
sourceFileMap: this.get<Record<string, string>>("debug.sourceFileMap"),
sourceFileMap: sourceFileMap,
};
}
}