Simplify the loading of the loader in the renderer processes

This commit is contained in:
Alex Dima
2018-09-07 12:59:08 +02:00
parent a4bf919e59
commit de17948191
5 changed files with 55 additions and 88 deletions

View File

@@ -7,14 +7,6 @@
const bootstrapWindow = require('../../../../bootstrap-window');
bootstrapWindow.load(['vs/code/electron-browser/issue/issueReporterMain'],
function (loaderFilename, loaderSource, clb) {
require('vm').runInThisContext(loaderSource, { filename: loaderFilename });
clb(require);
},
function (issueReporter, configuration) {
issueReporter.startup(configuration);
});
bootstrapWindow.load(['vs/code/electron-browser/issue/issueReporterMain'], function (issueReporter, configuration) {
issueReporter.startup(configuration);
});

View File

@@ -7,14 +7,6 @@
const bootstrapWindow = require('../../../../bootstrap-window');
bootstrapWindow.load(['vs/code/electron-browser/processExplorer/processExplorerMain'],
function (loaderFilename, loaderSource, clb) {
require('vm').runInThisContext(loaderSource, { filename: loaderFilename });
clb(require);
},
function (processExplorer, configuration) {
processExplorer.startup(configuration.data);
});
bootstrapWindow.load(['vs/code/electron-browser/processExplorer/processExplorerMain'], function (processExplorer, configuration) {
processExplorer.startup(configuration.data);
});

View File

@@ -7,16 +7,8 @@
const bootstrapWindow = require('../../../../bootstrap-window');
bootstrapWindow.load(['vs/code/electron-browser/sharedProcess/sharedProcessMain'],
function (loaderFilename, loaderSource, clb) {
require('vm').runInThisContext(loaderSource, { filename: loaderFilename });
clb(require);
},
function (sharedProcess, configuration) {
sharedProcess.startup({
machineId: configuration.machineId
});
});
bootstrapWindow.load(['vs/code/electron-browser/sharedProcess/sharedProcessMain'], function (sharedProcess, configuration) {
sharedProcess.startup({
machineId: configuration.machineId
});
});