mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-29 04:53:33 +01:00
Simplify the loading of the loader in the renderer processes
This commit is contained in:
@@ -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
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user