mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-20 02:08:47 +00:00
limit error notifications in macos update service (#182269)
fixes #182250
This commit is contained in:
@@ -50,8 +50,7 @@ export class DarwinUpdateService extends AbstractUpdateService {
|
|||||||
this.logService.error('UpdateService error:', err);
|
this.logService.error('UpdateService error:', err);
|
||||||
|
|
||||||
// only show message when explicitly checking for updates
|
// only show message when explicitly checking for updates
|
||||||
const shouldShowMessage = this.state.type === StateType.CheckingForUpdates ? this.state.explicit : true;
|
const message = (this.state.type === StateType.CheckingForUpdates && this.state.explicit) ? err : undefined;
|
||||||
const message: string | undefined = shouldShowMessage ? err : undefined;
|
|
||||||
this.setState(State.Idle(UpdateType.Archive, message));
|
this.setState(State.Idle(UpdateType.Archive, message));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user