mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-08 09:08:48 +01:00
debt - move workbench.main into workbench folder
This commit is contained in:
@@ -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) {
|
|||||||
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'
|
||||||
|
|||||||
+1
-1
@@ -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() {
|
|||||||
|
|
||||||
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 {
|
|||||||
}
|
}
|
||||||
|
|
||||||
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 });
|
||||||
});
|
});
|
||||||
|
|||||||
+1
-1
@@ -295,7 +295,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"target": "**/vs/workbench/electron-browser/workbench.main.ts",
|
"target": "**/vs/workbench/workbench.main.ts",
|
||||||
"restrictions": [
|
"restrictions": [
|
||||||
"**"
|
"**"
|
||||||
]
|
]
|
||||||
|
|||||||
Reference in New Issue
Block a user