mirror of
https://github.com/microsoft/vscode.git
synced 2026-09-13 05:01:08 +01:00
Remove short-circuit in ExtensionHostManager for Immediate activation events
This commit is contained in:
@@ -71,7 +71,6 @@ export class ExtensionHostManager extends Disposable implements IExtensionHostMa
|
||||
private readonly _customers: IDisposable[];
|
||||
private readonly _extensionHost: IExtensionHost;
|
||||
private _proxy: Promise<IExtensionHostProxy | null> | null;
|
||||
private _hasStarted = false;
|
||||
|
||||
public get pid(): number | null {
|
||||
return this._extensionHost.pid;
|
||||
@@ -116,7 +115,6 @@ export class ExtensionHostManager extends Disposable implements IExtensionHostMa
|
||||
|
||||
this._proxy = this._extensionHost.start().then(
|
||||
(protocol) => {
|
||||
this._hasStarted = true;
|
||||
|
||||
// Track healthy extension host startup
|
||||
const successTelemetryEvent: ExtensionHostStartupEvent = {
|
||||
@@ -321,10 +319,6 @@ export class ExtensionHostManager extends Disposable implements IExtensionHostMa
|
||||
}
|
||||
|
||||
public activateByEvent(activationEvent: string, activationKind: ActivationKind): Promise<void> {
|
||||
if (activationKind === ActivationKind.Immediate && !this._hasStarted) {
|
||||
return Promise.resolve();
|
||||
}
|
||||
|
||||
if (!this._cachedActivationEvents.has(activationEvent)) {
|
||||
this._cachedActivationEvents.set(activationEvent, this._activateByEvent(activationEvent, activationKind));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user