build - document loading approach better

This commit is contained in:
Benjamin Pasero 2019-08-23 15:21:01 +02:00
parent 40e79350b4
commit 760df9342b
2 changed files with 4 additions and 3 deletions

View file

@ -14,7 +14,10 @@ const bootstrapWindow = require('../../../../bootstrap-window');
// Setup shell environment
process['lazyEnv'] = getLazyEnv();
// Load workbench main
// Load workbench main JS, CSS and NLS all in parallel. This is an
// optimization to prevent a waterfall of loading to happen, because
// we know for a fact that workbench.desktop.main will depend on
// the related CSS and NLS counterparts.
bootstrapWindow.load([
'vs/workbench/workbench.desktop.main',
'vs/nls!vs/workbench/workbench.desktop.main',

View file

@ -4,8 +4,6 @@
*--------------------------------------------------------------------------------------------*/
import 'vs/workbench/workbench.web.main';
import 'vs/nls!vs/workbench/workbench.web.main';
import 'vs/css!vs/workbench/workbench.web.main';
import { main } from 'vs/workbench/browser/web.main';
import { UriComponents } from 'vs/base/common/uri';
import { IFileSystemProvider } from 'vs/platform/files/common/files';