diff options
| author | adamdottv <[email protected]> | 2025-05-05 07:04:33 -0500 |
|---|---|---|
| committer | adamdottv <[email protected]> | 2025-05-05 07:04:33 -0500 |
| commit | 167eb9ddfa366f38b72362624c4b28ac587cfce6 (patch) | |
| tree | a946be679877cfb1b51e7d16ebbf0dfd992e2dd5 /internal/tui/components | |
| parent | fba344718f0c83285e7268f40cc527f2c700693b (diff) | |
| download | opencode-167eb9ddfa366f38b72362624c4b28ac587cfce6.tar.gz opencode-167eb9ddfa366f38b72362624c4b28ac587cfce6.zip | |
fix: diagnostics visual in status bar
Diffstat (limited to 'internal/tui/components')
| -rw-r--r-- | internal/tui/components/core/status.go | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/internal/tui/components/core/status.go b/internal/tui/components/core/status.go index 54b8d4872..9460e7f98 100644 --- a/internal/tui/components/core/status.go +++ b/internal/tui/components/core/status.go @@ -216,36 +216,32 @@ func (m *statusCmp) projectDiagnostics() string { diagnostics := []string{} - errIcon := styles.CircledDigit(len(errorDiagnostics)) errStr := lipgloss.NewStyle(). Background(t.BackgroundDarker()). Foreground(t.Error()). - Render(errIcon) + Render(fmt.Sprintf("%s %d", styles.ErrorIcon, len(errorDiagnostics))) diagnostics = append(diagnostics, errStr) - warnIcon := styles.CircledDigit(len(warnDiagnostics)) warnStr := lipgloss.NewStyle(). Background(t.BackgroundDarker()). Foreground(t.Warning()). - Render(warnIcon) + Render(fmt.Sprintf("%s %d", styles.WarningIcon, len(warnDiagnostics))) diagnostics = append(diagnostics, warnStr) - infoIcon := styles.CircledDigit(len(infoDiagnostics)) infoStr := lipgloss.NewStyle(). Background(t.BackgroundDarker()). Foreground(t.Info()). - Render(infoIcon) + Render(fmt.Sprintf("%s %d", styles.InfoIcon, len(infoDiagnostics))) diagnostics = append(diagnostics, infoStr) - hintIcon := styles.CircledDigit(len(hintDiagnostics)) hintStr := lipgloss.NewStyle(). Background(t.BackgroundDarker()). Foreground(t.Text()). - Render(hintIcon) + Render(fmt.Sprintf("%s %d", styles.HintIcon, len(hintDiagnostics))) diagnostics = append(diagnostics, hintStr) return styles.ForceReplaceBackgroundWithLipgloss( - styles.Padded().Render(strings.Join(diagnostics, " ")), + styles.Padded().Render(strings.Join(diagnostics, " ")), t.BackgroundDarker(), ) } |
