summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authoradamdottv <[email protected]>2025-05-05 07:04:33 -0500
committeradamdottv <[email protected]>2025-05-05 07:04:33 -0500
commit167eb9ddfa366f38b72362624c4b28ac587cfce6 (patch)
treea946be679877cfb1b51e7d16ebbf0dfd992e2dd5
parentfba344718f0c83285e7268f40cc527f2c700693b (diff)
downloadopencode-167eb9ddfa366f38b72362624c4b28ac587cfce6.tar.gz
opencode-167eb9ddfa366f38b72362624c4b28ac587cfce6.zip
fix: diagnostics visual in status bar
-rw-r--r--internal/tui/components/core/status.go14
-rw-r--r--internal/tui/styles/icons.go2
2 files changed, 6 insertions, 10 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(),
)
}
diff --git a/internal/tui/styles/icons.go b/internal/tui/styles/icons.go
index 684ca7152..64d73dd37 100644
--- a/internal/tui/styles/icons.go
+++ b/internal/tui/styles/icons.go
@@ -3,7 +3,7 @@ package styles
const (
OpenCodeIcon string = "ⓒ"
- ErrorIcon string = "ⓧ"
+ ErrorIcon string = "ⓔ"
WarningIcon string = "ⓦ"
InfoIcon string = "ⓘ"
HintIcon string = "ⓗ"