Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit b8ee992

Browse files
committed
prettier
1 parent d1aa6d3 commit b8ee992

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

editors/code/package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,10 @@
309309
"object"
310310
],
311311
"additionalProperties": {
312-
"type": ["string", "number"]
312+
"type": [
313+
"string",
314+
"number"
315+
]
313316
},
314317
"default": null,
315318
"markdownDescription": "Extra environment variables that will be passed to the rust-analyzer executable. Useful for passing e.g. `RA_LOG` for debugging."

editors/code/src/config.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,11 @@ export class Config {
101101
return this.get<null | string>("server.path") ?? this.get<null | string>("serverPath");
102102
}
103103
get serverExtraEnv(): Env {
104-
const extraEnv = this.get<{[key: string]: string | number} | null>("server.extraEnv") ?? {};
105-
return Object.fromEntries(Object.entries(extraEnv).map(([k, v]) => [k, typeof v !== "string" ? v.toString(): v]));
104+
const extraEnv =
105+
this.get<{ [key: string]: string | number } | null>("server.extraEnv") ?? {};
106+
return Object.fromEntries(
107+
Object.entries(extraEnv).map(([k, v]) => [k, typeof v !== "string" ? v.toString() : v])
108+
);
106109
}
107110
get traceExtension() {
108111
return this.get<boolean>("trace.extension");

0 commit comments

Comments
 (0)