Unnamed repository; edit this file 'description' to name the repository.
-rw-r--r--editors/code/package.json5
-rw-r--r--editors/code/src/config.ts7
2 files changed, 9 insertions, 3 deletions
diff --git a/editors/code/package.json b/editors/code/package.json
index 1cbbe9ee71..18fa7f2f4c 100644
--- a/editors/code/package.json
+++ b/editors/code/package.json
@@ -309,7 +309,10 @@
"object"
],
"additionalProperties": {
- "type": ["string", "number"]
+ "type": [
+ "string",
+ "number"
+ ]
},
"default": null,
"markdownDescription": "Extra environment variables that will be passed to the rust-analyzer executable. Useful for passing e.g. `RA_LOG` for debugging."
diff --git a/editors/code/src/config.ts b/editors/code/src/config.ts
index 9d9392d2a5..d07e47c8de 100644
--- a/editors/code/src/config.ts
+++ b/editors/code/src/config.ts
@@ -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");