vscode: fix extraEnv handling numeric values
This commit is contained in:
@@ -100,8 +100,9 @@ export class Config {
|
||||
get serverPath() {
|
||||
return this.get<null | string>("server.path") ?? this.get<null | string>("serverPath");
|
||||
}
|
||||
get serverExtraEnv() {
|
||||
return this.get<Env | null>("server.extraEnv") ?? {};
|
||||
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]));
|
||||
}
|
||||
get traceExtension() {
|
||||
return this.get<boolean>("trace.extension");
|
||||
|
||||
Reference in New Issue
Block a user