@@ -48,7 +48,6 @@ export class ExtensionHostManager extends Disposable {
4848 */
4949 private _proxy : Promise < { value : ExtHostExtensionServiceShape ; } | null > | null ;
5050 private _resolveAuthorityAttempt : number ;
51- private _hasStarted = false ;
5251
5352 constructor (
5453 extensionHost : IExtensionHost ,
@@ -66,7 +65,6 @@ export class ExtensionHostManager extends Disposable {
6665 this . onDidExit = this . _extensionHost . onExit ;
6766 this . _proxy = this . _extensionHost . start ( ) ! . then (
6867 ( protocol ) => {
69- this . _hasStarted = true ;
7068 return { value : this . _createExtensionHostCustomers ( protocol ) } ;
7169 } ,
7270 ( err ) => {
@@ -219,18 +217,14 @@ export class ExtensionHostManager extends Disposable {
219217 return proxy . $activate ( extension , reason ) ;
220218 }
221219
222- public activateByEvent ( activationEvent : string , eager ?: boolean ) : Promise < void > {
223- if ( eager && ! this . _hasStarted ) {
224- return Promise . resolve ( ) ;
225- }
226-
220+ public activateByEvent ( activationEvent : string ) : Promise < void > {
227221 if ( ! this . _cachedActivationEvents . has ( activationEvent ) ) {
228- this . _cachedActivationEvents . set ( activationEvent , this . _activateByEvent ( activationEvent , eager ) ) ;
222+ this . _cachedActivationEvents . set ( activationEvent , this . _activateByEvent ( activationEvent ) ) ;
229223 }
230224 return this . _cachedActivationEvents . get ( activationEvent ) ! ;
231225 }
232226
233- private async _activateByEvent ( activationEvent : string , eager ?: boolean ) : Promise < void > {
227+ private async _activateByEvent ( activationEvent : string ) : Promise < void > {
234228 if ( ! this . _proxy ) {
235229 return ;
236230 }
@@ -240,7 +234,7 @@ export class ExtensionHostManager extends Disposable {
240234 // i.e. the extension host could not be started
241235 return ;
242236 }
243- return proxy . value . $activateByEvent ( activationEvent , eager ) ;
237+ return proxy . value . $activateByEvent ( activationEvent ) ;
244238 }
245239
246240 public async getInspectPort ( tryEnableInspector : boolean ) : Promise < number > {
0 commit comments