We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 74f8976 commit 4d80bf9Copy full SHA for 4d80bf9
src/controller/problems.tsx
@@ -37,17 +37,15 @@ export class ProblemsController
37
38
private showHideProblems() {
39
const { panel } = this.layoutService.getState();
40
- if (panel.hidden) {
+ const { current } = this.panelService.getState();
41
+
42
+ if (panel.hidden || current?.id === builtInPanelProblems().id) {
43
this.monacoService.commandService.executeCommand(
44
QuickTogglePanelAction.ID
45
);
46
}
- const { current } = this.panelService.getState();
- if (current?.id !== builtInPanelProblems().id) {
47
- this.panelService.open(builtInPanelProblems());
48
- } else {
49
- this.layoutService.setPanelHidden();
50
- }
+ this.panelService.open(builtInPanelProblems());
51
52
53
public onClick = (e: React.MouseEvent, item: IStatusBarItem) => {
0 commit comments