MCPcopy Index your code
hub / github.com/DTStack/molecule / showHideProblems

Method showHideProblems

src/controller/problems.tsx:52–65  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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();

Callers 1

ProblemsControllerClass · 0.95

Calls 4

getStateMethod · 0.80
getModulesMethod · 0.65
executeCommandMethod · 0.65
openMethod · 0.65

Tested by

no test coverage detected