File tree Expand file tree Collapse file tree
services/extensions/common Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -249,7 +249,7 @@ export class MainThreadAuthentication extends Disposable implements MainThreadAu
249249 }
250250
251251 $ensureProvider ( id : string ) : Promise < void > {
252- return this . extensionService . activateByEvent ( getAuthenticationProviderActivationEvent ( id ) , ActivationKind . Eager ) ;
252+ return this . extensionService . activateByEvent ( getAuthenticationProviderActivationEvent ( id ) , ActivationKind . Immediate ) ;
253253 }
254254
255255 $sendDidChangeSessions ( id : string , event : modes . AuthenticationSessionsChangeEvent ) : void {
Original file line number Diff line number Diff line change @@ -687,7 +687,7 @@ export abstract class AbstractExtHostExtensionService extends Disposable impleme
687687 }
688688
689689 public $activateByEvent ( activationEvent : string , activationKind : ActivationKind ) : Promise < void > {
690- if ( activationKind === ActivationKind . Eager ) {
690+ if ( activationKind === ActivationKind . Immediate ) {
691691 return this . _activateByEvent ( activationEvent , false ) ;
692692 }
693693
Original file line number Diff line number Diff line change @@ -205,7 +205,7 @@ export abstract class AbstractExtensionService extends Disposable implements IEx
205205 // Record the fact that this activationEvent was requested (in case of a restart)
206206 this . _allRequestedActivateEvents . add ( activationEvent ) ;
207207
208- if ( activationKind === ActivationKind . Eager ) {
208+ if ( activationKind === ActivationKind . Immediate ) {
209209 // Do not wait for the normal start-up of the extension host(s)
210210 return this . _activateByEvent ( activationEvent , activationKind ) ;
211211 }
Original file line number Diff line number Diff line change @@ -220,7 +220,7 @@ export class ExtensionHostManager extends Disposable {
220220 }
221221
222222 public activateByEvent ( activationEvent : string , activationKind : ActivationKind ) : Promise < void > {
223- if ( activationKind === ActivationKind . Eager && ! this . _hasStarted ) {
223+ if ( activationKind === ActivationKind . Immediate && ! this . _hasStarted ) {
224224 return Promise . resolve ( ) ;
225225 }
226226
Original file line number Diff line number Diff line change @@ -142,7 +142,7 @@ export interface IResponsiveStateChangeEvent {
142142
143143export const enum ActivationKind {
144144 Normal = 0 ,
145- Eager = 1
145+ Immediate = 1
146146}
147147
148148export interface IExtensionService {
@@ -187,7 +187,7 @@ export interface IExtensionService {
187187 *
188188 * In extraordinary circumstances, if the activation event needs to activate
189189 * one or more extensions before the normal startup is finished, then you can use
190- * `ActivationKind.Eager `. Please do not use this flag unless really necessary
190+ * `ActivationKind.Immediate `. Please do not use this flag unless really necessary
191191 * and you understand all consequences.
192192 */
193193 activateByEvent ( activationEvent : string , activationKind ?: ActivationKind ) : Promise < void > ;
You can’t perform that action at this time.
0 commit comments