mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-26 11:59:49 +00:00
⬆️ rust-analyzer
This commit is contained in:
parent
8536eb016c
commit
a99a48e786
86 changed files with 3149 additions and 1653 deletions
|
@ -133,7 +133,21 @@ export class Config {
|
|||
}
|
||||
|
||||
get runnableEnv() {
|
||||
return this.get<RunnableEnvCfg>("runnableEnv");
|
||||
const item = this.get<any>("runnableEnv");
|
||||
if (!item) return item;
|
||||
const fixRecord = (r: Record<string, any>) => {
|
||||
for (const key in r) {
|
||||
if (typeof r[key] !== "string") {
|
||||
r[key] = String(r[key]);
|
||||
}
|
||||
}
|
||||
};
|
||||
if (item instanceof Array) {
|
||||
item.forEach((x) => fixRecord(x.env));
|
||||
} else {
|
||||
fixRecord(item);
|
||||
}
|
||||
return item;
|
||||
}
|
||||
|
||||
get restartServerOnConfigChange() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue