File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -40,6 +40,7 @@ import { coalesce } from 'vs/base/common/arrays';
4040import { InstantiationService } from 'vs/platform/instantiation/common/instantiationService' ;
4141import { Layout } from 'vs/workbench/browser/layout' ;
4242import { IHostService } from 'vs/workbench/services/host/browser/host' ;
43+ import { initializeExtensions } from 'vs/workbench/services/userData/browser/userDataInit' ;
4344
4445export class Workbench extends Layout {
4546
@@ -192,7 +193,7 @@ export class Workbench extends Layout {
192193 const instantiationService = new InstantiationService ( serviceCollection , true ) ;
193194
194195 // Wrap up
195- instantiationService . invokeFunction ( accessor => {
196+ instantiationService . invokeFunction ( async accessor => {
196197 const lifecycleService = accessor . get ( ILifecycleService ) ;
197198
198199 // TODO@Sandeep debt around cyclic dependencies
@@ -203,6 +204,11 @@ export class Workbench extends Layout {
203204 } , 0 ) ;
204205 }
205206
207+ // Initialize extensions (only in web)
208+ if ( isWeb ) {
209+ await initializeExtensions ( instantiationService ) ;
210+ }
211+
206212 // Signal to lifecycle that services are set
207213 lifecycleService . phase = LifecyclePhase . Ready ;
208214 } ) ;
You can’t perform that action at this time.
0 commit comments