提交 7c7235fc 编写于 作者: I isidor

add update badge as soon as update is availble on linux (since it is never ready on that platform)

fixes #27565
上级 171e5c20
......@@ -296,10 +296,15 @@ export class LightUpdateContribution implements IGlobalActivity {
@IWorkbenchEditorService editorService: IWorkbenchEditorService,
@IActivityBarService activityBarService: IActivityBarService
) {
this.updateService.onUpdateReady(() => {
const addBadge = () => {
const badge = new NumberBadge(1, () => nls.localize('updateIsReady', "New update available."));
activityBarService.showGlobalActivity(this.id, badge);
});
};
if (isLinux) {
this.updateService.onUpdateAvailable(() => addBadge());
} else {
this.updateService.onUpdateReady(() => addBadge());
}
this.updateService.onError(err => messageService.show(severity.Error, err));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册