()
| 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; |
no test coverage detected