MCPcopy Index your code
hub / github.com/Acode-Foundation/Acode / toggleProblemButton

Function toggleProblemButton

src/lib/editorManager.js:2793–2806  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2791 }
2792
2793 function toggleProblemButton() {
2794 const { showSideButtons } = appSettings.value;
2795 if (!showSideButtons) {
2796 problemButton.hide();
2797 return;
2798 }
2799
2800 const hasProblems = manager.files.some((file) => fileHasProblems(file));
2801 if (hasProblems) {
2802 problemButton.show();
2803 } else {
2804 problemButton.hide();
2805 }
2806 }
2807
2808 function getDiagnosticStateForFile(file) {
2809 if (!file || file.type !== "editor") return null;

Callers 6

listenerFunction · 0.85
EditorManagerFunction · 0.85
getDocSyncListenerFunction · 0.85
addFileFunction · 0.85
setupEditorFunction · 0.85
switchFileFunction · 0.85

Calls 3

fileHasProblemsFunction · 0.85
hideMethod · 0.45
showMethod · 0.45

Tested by

no test coverage detected