From bc076ca30d1af07110dbc9ae208e5b6ed9afaf40 Mon Sep 17 00:00:00 2001 From: Kyle Carberry Date: Thu, 21 Feb 2019 13:00:46 -0600 Subject: [PATCH] Fix custom paths resolve --- packages/server/src/vscode/bootstrapFork.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/server/src/vscode/bootstrapFork.ts b/packages/server/src/vscode/bootstrapFork.ts index b6b6de88..834bae00 100644 --- a/packages/server/src/vscode/bootstrapFork.ts +++ b/packages/server/src/vscode/bootstrapFork.ts @@ -22,7 +22,7 @@ const requireFilesystemModule = (id: string, builtInExtensionsDir: string): any const customMod = new mod.Module(id); customMod.filename = id; // tslint:disable-next-line:no-any - customMod.paths = [(mod)._nodeModulePaths(path.dirname(id)), path.join(__dirname, "../../../../lib/vscode/node_modules")]; + customMod.paths = (mod)._nodeModulePaths(path.dirname(id)); if (id.startsWith(builtInExtensionsDir)) { customMod.loaded = true;