Skip to content

Commit c11d5fe

Browse files
committed
Fix error when passing empty extra extension dir flag
1 parent 90e8714 commit c11d5fe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/vscode.patch

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ index a6c9eb9d11..3f8995b727 100644
234234
+ extraBuiltinExtensionPaths: string[];
235235
}
236236
diff --git a/src/vs/platform/environment/node/environmentService.ts b/src/vs/platform/environment/node/environmentService.ts
237-
index 9373b22383..33ebcfc081 100644
237+
index 9373b22383..a98ff4723c 100644
238238
--- a/src/vs/platform/environment/node/environmentService.ts
239239
+++ b/src/vs/platform/environment/node/environmentService.ts
240240
@@ -277,6 +277,15 @@ export class EnvironmentService implements IEnvironmentService {
@@ -248,7 +248,7 @@ index 9373b22383..33ebcfc081 100644
248248
+ return this.arrayify(this._args['extra-builtin-extensions-dir']).map((p) => <string>parsePathArg(p, process));
249249
+ }
250250
+ private arrayify<T>(arg: T | T[] = []): T[] {
251-
+ return (Array.isArray(arg) ? arg : [arg]);
251+
+ return (Array.isArray(arg) ? arg : [arg]).filter((p) => !!p);
252252
+ }
253253

254254
constructor(private _args: ParsedArgs, private _execPath: string) {

0 commit comments

Comments
 (0)