提交 e69b79bd 编写于 作者: B Benjamin Pasero

debt - move workbench.main into workbench folder

上级 56016425
...@@ -55,7 +55,7 @@ const excludedExtensions = [ ...@@ -55,7 +55,7 @@ const excludedExtensions = [
]; ];
const vscodeEntryPoints = _.flatten([ const vscodeEntryPoints = _.flatten([
buildfile.entrypoint('vs/workbench/electron-browser/workbench.main'), buildfile.entrypoint('vs/workbench/workbench.main'),
buildfile.base, buildfile.base,
buildfile.workbench, buildfile.workbench,
buildfile.code buildfile.code
...@@ -219,8 +219,8 @@ function packageTask(platform, arch, opts) { ...@@ -219,8 +219,8 @@ function packageTask(platform, arch, opts) {
const out = opts.minified ? 'out-vscode-min' : 'out-vscode'; const out = opts.minified ? 'out-vscode-min' : 'out-vscode';
const checksums = computeChecksums(out, [ const checksums = computeChecksums(out, [
'vs/workbench/electron-browser/workbench.main.js', 'vs/workbench/workbench.main.js',
'vs/workbench/electron-browser/workbench.main.css', 'vs/workbench/workbench.main.css',
'vs/workbench/electron-browser/bootstrap/index.html', 'vs/workbench/electron-browser/bootstrap/index.html',
'vs/workbench/electron-browser/bootstrap/index.js', 'vs/workbench/electron-browser/bootstrap/index.js',
'vs/workbench/electron-browser/bootstrap/preload.js' 'vs/workbench/electron-browser/bootstrap/preload.js'
......
...@@ -10,7 +10,7 @@ exports.base = [{ ...@@ -10,7 +10,7 @@ exports.base = [{
append: [ 'vs/base/worker/workerMain' ], append: [ 'vs/base/worker/workerMain' ],
dest: 'vs/base/worker/workerMain.js' dest: 'vs/base/worker/workerMain.js'
}]; }];
exports.workbench = require('./vs/workbench/buildfile').collectModules(['vs/workbench/electron-browser/workbench.main']); exports.workbench = require('./vs/workbench/buildfile').collectModules(['vs/workbench/workbench.main']);
exports.code = require('./vs/code/buildfile').collectModules(); exports.code = require('./vs/code/buildfile').collectModules();
exports.entrypoint = function (name) { exports.entrypoint = function (name) {
......
...@@ -191,9 +191,9 @@ function main() { ...@@ -191,9 +191,9 @@ function main() {
const workbenchMainTimer = startTimer('load:workbench.main'); const workbenchMainTimer = startTimer('load:workbench.main');
require([ require([
'vs/workbench/electron-browser/workbench.main', 'vs/workbench/workbench.main',
'vs/nls!vs/workbench/electron-browser/workbench.main', 'vs/nls!vs/workbench/workbench.main',
'vs/css!vs/workbench/electron-browser/workbench.main' 'vs/css!vs/workbench/workbench.main'
], function () { ], function () {
workbenchMainTimer.stop(); workbenchMainTimer.stop();
timers.afterLoadWorkbenchMain = Date.now(); timers.afterLoadWorkbenchMain = Date.now();
......
...@@ -247,7 +247,7 @@ class PerformanceTelemetry implements IWorkbenchContribution { ...@@ -247,7 +247,7 @@ class PerformanceTelemetry implements IWorkbenchContribution {
} }
private _sendWorkbenchMainSizeTelemetry(): void { private _sendWorkbenchMainSizeTelemetry(): void {
const { fsPath } = URI.parse(require.toUrl('vs/workbench/electron-browser/workbench.main.js')); const { fsPath } = URI.parse(require.toUrl('vs/workbench/workbench.main.js'));
stat(fsPath).then(stats => { stat(fsPath).then(stats => {
this._telemetryService.publicLog('perf:jsFileSize', { workbenchMain: stats.size }); this._telemetryService.publicLog('perf:jsFileSize', { workbenchMain: stats.size });
}); });
......
...@@ -295,7 +295,7 @@ ...@@ -295,7 +295,7 @@
] ]
}, },
{ {
"target": "**/vs/workbench/electron-browser/workbench.main.ts", "target": "**/vs/workbench/workbench.main.ts",
"restrictions": [ "restrictions": [
"**" "**"
] ]
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册