Archived
1
0

Fix custom paths resolve

This commit is contained in:
Kyle Carberry 2019-02-21 13:00:46 -06:00
parent 85d2225e0c
commit bc076ca30d
No known key found for this signature in database
GPG Key ID: A0409BDB6B0B3EDB

View File

@ -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 = [(<any>mod)._nodeModulePaths(path.dirname(id)), path.join(__dirname, "../../../../lib/vscode/node_modules")];
customMod.paths = (<any>mod)._nodeModulePaths(path.dirname(id));
if (id.startsWith(builtInExtensionsDir)) {
customMod.loaded = true;