提交 b5c999e3 编写于 作者: D Dirk Baeumer

Fixes #10016: the spinning bar (progress indicator) doesn't appear anymore...

Fixes #10016: the spinning bar (progress indicator) doesn't appear anymore after a running task gets terminated
上级 e3219411
......@@ -504,11 +504,17 @@ class StatusBarItem implements IStatusbarItem {
}));
callOnDispose.push(this.taskService.addListener2(TaskServiceEvents.Inactive, (data:TaskServiceEventData) => {
this.activeCount--;
if (this.activeCount === 0) {
$(progress).hide();
clearInterval(this.intervalToken);
this.intervalToken = null;
// Since the exiting of the sub process is communicated async we can't order inactive and terminate events.
// So try to treat them accordingly.
if (this.activeCount > 0) {
this.activeCount--;
if (this.activeCount === 0) {
$(progress).hide();
if (this.intervalToken) {
clearInterval(this.intervalToken);
this.intervalToken = null;
}
}
}
}));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册