diff options
| author | Kujtim Hoxha <[email protected]> | 2025-04-19 15:15:29 +0200 |
|---|---|---|
| committer | Kujtim Hoxha <[email protected]> | 2025-04-21 13:42:29 +0200 |
| commit | 2b5a33e476ae3c6b5c6345777d20792786836dda (patch) | |
| tree | ca22c0a7d6c8f73a21e2b67f31b927b7df187d4d /internal/tui/components/core | |
| parent | bf8cd3bd128d97cf93fcd1481c37db0e46945fd2 (diff) | |
| download | opencode-2b5a33e476ae3c6b5c6345777d20792786836dda.tar.gz opencode-2b5a33e476ae3c6b5c6345777d20792786836dda.zip | |
lsp improvements
Diffstat (limited to 'internal/tui/components/core')
| -rw-r--r-- | internal/tui/components/core/status.go | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/internal/tui/components/core/status.go b/internal/tui/components/core/status.go index 01c535869..5a2114e83 100644 --- a/internal/tui/components/core/status.go +++ b/internal/tui/components/core/status.go @@ -138,6 +138,23 @@ func (m statusCmp) View() string { } func (m *statusCmp) projectDiagnostics() string { + // Check if any LSP server is still initializing + initializing := false + for _, client := range m.lspClients { + if client.GetServerState() == lsp.StateStarting { + initializing = true + break + } + } + + // If any server is initializing, show that status + if initializing { + return lipgloss.NewStyle(). + Background(styles.BackgroundDarker). + Foreground(styles.Peach). + Render(fmt.Sprintf("%s Initializing LSP...", styles.SpinnerIcon)) + } + errorDiagnostics := []protocol.Diagnostic{} warnDiagnostics := []protocol.Diagnostic{} hintDiagnostics := []protocol.Diagnostic{} |
