mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 21:05:02 +00:00
Add special auto
value for debug.sourceFileMap
This commit is contained in:
parent
8f781e782c
commit
1ebfe11730
5 changed files with 38 additions and 27 deletions
|
@ -134,8 +134,12 @@ export class Config {
|
|||
}
|
||||
|
||||
get debug() {
|
||||
// "/rustc/<id>" used by suggestions only.
|
||||
const { ["/rustc/<id>"]: _, ...sourceFileMap } = this.get<Record<string, string>>("debug.sourceFileMap");
|
||||
let sourceFileMap = this.get<Record<string, string> | "auto">("debug.sourceFileMap");
|
||||
if (sourceFileMap !== "auto") {
|
||||
// "/rustc/<id>" used by suggestions only.
|
||||
const { ["/rustc/<id>"]: _, ...trimmed } = this.get<Record<string, string>>("debug.sourceFileMap");
|
||||
sourceFileMap = trimmed;
|
||||
}
|
||||
|
||||
return {
|
||||
engine: this.get<string>("debug.engine"),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue