()
| 50 | } |
| 51 | |
| 52 | private showHideProblems() { |
| 53 | const { panel } = this.layoutService.getState(); |
| 54 | const { current } = this.panelService.getState(); |
| 55 | const { builtInPanelProblems } = this.builtinService.getModules(); |
| 56 | if (builtInPanelProblems) { |
| 57 | if (panel.hidden || current?.id === builtInPanelProblems.id) { |
| 58 | this.monacoService.commandService.executeCommand( |
| 59 | QuickTogglePanelAction.ID |
| 60 | ); |
| 61 | } |
| 62 | |
| 63 | this.panelService.open(builtInPanelProblems); |
| 64 | } |
| 65 | } |
| 66 | |
| 67 | public onClick = (e: React.MouseEvent, item: IStatusBarItem) => { |
| 68 | this.showHideProblems(); |
no test coverage detected