mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-08-22 19:34:16 +00:00
prettier
This commit is contained in:
parent
d1aa6d3216
commit
b8ee992b57
2 changed files with 9 additions and 3 deletions
|
@ -101,8 +101,11 @@ export class Config {
|
|||
return this.get<null | string>("server.path") ?? this.get<null | string>("serverPath");
|
||||
}
|
||||
get serverExtraEnv(): Env {
|
||||
const extraEnv = this.get<{[key: string]: string | number} | null>("server.extraEnv") ?? {};
|
||||
return Object.fromEntries(Object.entries(extraEnv).map(([k, v]) => [k, typeof v !== "string" ? v.toString(): v]));
|
||||
const extraEnv =
|
||||
this.get<{ [key: string]: string | number } | null>("server.extraEnv") ?? {};
|
||||
return Object.fromEntries(
|
||||
Object.entries(extraEnv).map(([k, v]) => [k, typeof v !== "string" ? v.toString() : v])
|
||||
);
|
||||
}
|
||||
get traceExtension() {
|
||||
return this.get<boolean>("trace.extension");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue