提交 c1ef29da 编写于 作者: J Joao Moreno

export bootstrap from bootstrap-amd

上级 27c4aca1
......@@ -33,7 +33,13 @@ if (nlsConfig.pseudo) {
});
}
var entrypoint = process.env['AMD_ENTRYPOINT'];
if (entrypoint) {
var bootstrap = exports.bootstrap = function (entrypoint) {
loader([entrypoint], function () { }, function (err) { console.error(err); });
}
};
if (require.main === module) {
var entrypoint = process.env['AMD_ENTRYPOINT'];
if (entrypoint) {
bootstrap(entrypoint);
}
}
\ No newline at end of file
......@@ -76,6 +76,5 @@ process.env['VSCODE_NLS_CONFIG'] = JSON.stringify(nlsConfig);
// Load our code once ready
app.once('ready', function() {
process.env['AMD_ENTRYPOINT'] = 'vs/workbench/electron-main/main';
require('./bootstrap-amd');
require('./bootstrap-amd').bootstrap('vs/workbench/electron-main/main');
});
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册