do not use downloading state (#206955)

This commit is contained in:
Sandeep Somavarapu 2024-03-06 13:12:18 +01:00 committed by GitHub
parent 9626fb0cd2
commit 6bdee9d1e3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -862,7 +862,7 @@ export class ExtensionsWorkbenchService extends Disposable implements IExtension
if (!this.isAutoUpdateEnabled()) {
return;
}
if ((e.type === StateType.CheckingForUpdates && e.explicit) || e.type === StateType.AvailableForDownload || e.type === StateType.Downloading) {
if ((e.type === StateType.CheckingForUpdates && e.explicit) || e.type === StateType.AvailableForDownload || e.type === StateType.Downloaded) {
this.eventuallyCheckForUpdates(true);
}
}));
@ -1520,7 +1520,6 @@ export class ExtensionsWorkbenchService extends Disposable implements IExtension
private getProductUpdateVersion(): IProductVersion | undefined {
switch (this.updateService.state.type) {
case StateType.AvailableForDownload:
case StateType.Downloading:
case StateType.Downloaded:
case StateType.Updating:
case StateType.Ready: