未验证 提交 df5d0e58 编写于 作者: A Alex Dima

Rename `ActivationKind.Eager` to `ActivationKind.Immediate`

上级 27082f3d
...@@ -249,7 +249,7 @@ export class MainThreadAuthentication extends Disposable implements MainThreadAu ...@@ -249,7 +249,7 @@ export class MainThreadAuthentication extends Disposable implements MainThreadAu
} }
$ensureProvider(id: string): Promise<void> { $ensureProvider(id: string): Promise<void> {
return this.extensionService.activateByEvent(getAuthenticationProviderActivationEvent(id), ActivationKind.Eager); return this.extensionService.activateByEvent(getAuthenticationProviderActivationEvent(id), ActivationKind.Immediate);
} }
$sendDidChangeSessions(id: string, event: modes.AuthenticationSessionsChangeEvent): void { $sendDidChangeSessions(id: string, event: modes.AuthenticationSessionsChangeEvent): void {
......
...@@ -687,7 +687,7 @@ export abstract class AbstractExtHostExtensionService extends Disposable impleme ...@@ -687,7 +687,7 @@ export abstract class AbstractExtHostExtensionService extends Disposable impleme
} }
public $activateByEvent(activationEvent: string, activationKind: ActivationKind): Promise<void> { public $activateByEvent(activationEvent: string, activationKind: ActivationKind): Promise<void> {
if (activationKind === ActivationKind.Eager) { if (activationKind === ActivationKind.Immediate) {
return this._activateByEvent(activationEvent, false); return this._activateByEvent(activationEvent, false);
} }
......
...@@ -205,7 +205,7 @@ export abstract class AbstractExtensionService extends Disposable implements IEx ...@@ -205,7 +205,7 @@ export abstract class AbstractExtensionService extends Disposable implements IEx
// Record the fact that this activationEvent was requested (in case of a restart) // Record the fact that this activationEvent was requested (in case of a restart)
this._allRequestedActivateEvents.add(activationEvent); this._allRequestedActivateEvents.add(activationEvent);
if (activationKind === ActivationKind.Eager) { if (activationKind === ActivationKind.Immediate) {
// Do not wait for the normal start-up of the extension host(s) // Do not wait for the normal start-up of the extension host(s)
return this._activateByEvent(activationEvent, activationKind); return this._activateByEvent(activationEvent, activationKind);
} }
......
...@@ -220,7 +220,7 @@ export class ExtensionHostManager extends Disposable { ...@@ -220,7 +220,7 @@ export class ExtensionHostManager extends Disposable {
} }
public activateByEvent(activationEvent: string, activationKind: ActivationKind): Promise<void> { public activateByEvent(activationEvent: string, activationKind: ActivationKind): Promise<void> {
if (activationKind === ActivationKind.Eager && !this._hasStarted) { if (activationKind === ActivationKind.Immediate && !this._hasStarted) {
return Promise.resolve(); return Promise.resolve();
} }
......
...@@ -142,7 +142,7 @@ export interface IResponsiveStateChangeEvent { ...@@ -142,7 +142,7 @@ export interface IResponsiveStateChangeEvent {
export const enum ActivationKind { export const enum ActivationKind {
Normal = 0, Normal = 0,
Eager = 1 Immediate = 1
} }
export interface IExtensionService { export interface IExtensionService {
...@@ -187,7 +187,7 @@ export interface IExtensionService { ...@@ -187,7 +187,7 @@ export interface IExtensionService {
* *
* In extraordinary circumstances, if the activation event needs to activate * In extraordinary circumstances, if the activation event needs to activate
* one or more extensions before the normal startup is finished, then you can use * one or more extensions before the normal startup is finished, then you can use
* `ActivationKind.Eager`. Please do not use this flag unless really necessary * `ActivationKind.Immediate`. Please do not use this flag unless really necessary
* and you understand all consequences. * and you understand all consequences.
*/ */
activateByEvent(activationEvent: string, activationKind?: ActivationKind): Promise<void>; activateByEvent(activationEvent: string, activationKind?: ActivationKind): Promise<void>;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册