Skip to content

Commit df5d0e5

Browse files
committed
Rename ActivationKind.Eager to ActivationKind.Immediate
1 parent 27082f3 commit df5d0e5

5 files changed

Lines changed: 6 additions & 6 deletions

File tree

src/vs/workbench/api/browser/mainThreadAuthentication.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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 {

src/vs/workbench/api/common/extHostExtensionService.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

src/vs/workbench/services/extensions/common/abstractExtensionService.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
}

src/vs/workbench/services/extensions/common/extensionHostManager.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

src/vs/workbench/services/extensions/common/extensions.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ export interface IResponsiveStateChangeEvent {
142142

143143
export const enum ActivationKind {
144144
Normal = 0,
145-
Eager = 1
145+
Immediate = 1
146146
}
147147

148148
export 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>;

0 commit comments

Comments
 (0)