mirror of
https://github.com/microsoft/vscode.git
synced 2026-07-06 23:06:20 +01:00
@@ -122,7 +122,7 @@ const modulesCache = new Map<IExtensionDescription | undefined, { http?: typeof
|
||||
function configureModuleLoading(extensionService: ExtHostExtensionService, lookup: ReturnType<typeof createPatchedModules>): Promise<void> {
|
||||
return extensionService.getExtensionPathIndex()
|
||||
.then(extensionPaths => {
|
||||
const node_module = <any>globalThis._VSCODE_NODE_MODULES.module;
|
||||
const node_module = require('module');
|
||||
const original = node_module._load;
|
||||
node_module._load = function load(request: string, parent: { filename: string }, isMain: boolean) {
|
||||
if (request === 'net') {
|
||||
|
||||
Reference in New Issue
Block a user