We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a0ab61f commit 983ae1bCopy full SHA for 983ae1b
editors/code/src/config.ts
@@ -133,7 +133,21 @@ export class Config {
133
}
134
135
get runnableEnv() {
136
- return this.get<RunnableEnvCfg>("runnableEnv");
+ const item = this.get<any>("runnableEnv");
137
+ if (!item) return item;
138
+ const fixRecord = (r: Record<string, any>) => {
139
+ for (const key in r) {
140
+ if (typeof r[key] !== 'string') {
141
+ r[key] = String(r[key]);
142
+ }
143
144
+ };
145
+ if (item instanceof Array) {
146
+ item.forEach((x) => fixRecord(x.env));
147
+ } else {
148
+ fixRecord(item);
149
150
+ return item;
151
152
153
get restartServerOnConfigChange() {
0 commit comments