mirror of
https://github.com/coder/code-server.git
synced 2024-11-23 20:52:38 +03:00
Fix custom paths resolve
This commit is contained in:
parent
85d2225e0c
commit
bc076ca30d
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user