prettier
This commit is contained in:
@@ -309,7 +309,10 @@
|
|||||||
"object"
|
"object"
|
||||||
],
|
],
|
||||||
"additionalProperties": {
|
"additionalProperties": {
|
||||||
"type": ["string", "number"]
|
"type": [
|
||||||
|
"string",
|
||||||
|
"number"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"default": null,
|
"default": null,
|
||||||
"markdownDescription": "Extra environment variables that will be passed to the rust-analyzer executable. Useful for passing e.g. `RA_LOG` for debugging."
|
"markdownDescription": "Extra environment variables that will be passed to the rust-analyzer executable. Useful for passing e.g. `RA_LOG` for debugging."
|
||||||
|
|||||||
@@ -101,8 +101,11 @@ export class Config {
|
|||||||
return this.get<null | string>("server.path") ?? this.get<null | string>("serverPath");
|
return this.get<null | string>("server.path") ?? this.get<null | string>("serverPath");
|
||||||
}
|
}
|
||||||
get serverExtraEnv(): Env {
|
get serverExtraEnv(): Env {
|
||||||
const extraEnv = this.get<{[key: string]: string | number} | null>("server.extraEnv") ?? {};
|
const extraEnv =
|
||||||
return Object.fromEntries(Object.entries(extraEnv).map(([k, v]) => [k, typeof v !== "string" ? v.toString(): v]));
|
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() {
|
get traceExtension() {
|
||||||
return this.get<boolean>("trace.extension");
|
return this.get<boolean>("trace.extension");
|
||||||
|
|||||||
Reference in New Issue
Block a user