HI ,
I am have custom progress statusbarItem
@injectable()
export class CustomProgressStatusBarItem extends ProgressStatusBarItem {
@inject(BackgroundProcessService) private readonly backgroundProcessService: BackgroundProcessService;
protected update(progressId: string | undefined): void {
const message = progressId && this.messagesByProgress.get(progressId);
if (!progressId || !message) {
this.statusBar.removeElement(this.id);
return;
}
const text = `$(refresh~spin) ${message}`;
this.statusBar.setElement(this.id, {
text,
alignment: StatusBarAlignment.LEFT,
priority: 1,
tooltip: 'Show details',
onclick: ()=> {
this.backgroundProcessService.togglePopover();
},
});
}
}
But due to this change,the event generated on click of statusbar is pointerEvent which is not a MouseEvent. Am I doing something wrong or I need to use CommandId instead of onClick ?