From f41b7bbd0a0cc731fd7c471b7ee8b26f14a21755 Mon Sep 17 00:00:00 2001 From: adamdottv <2363879+adamdottv@users.noreply.github.com> Date: Thu, 8 May 2025 12:03:59 -0500 Subject: chore: refactoring status updates --- internal/lsp/client.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'internal/lsp') diff --git a/internal/lsp/client.go b/internal/lsp/client.go index a9ad50e37..290a01cba 100644 --- a/internal/lsp/client.go +++ b/internal/lsp/client.go @@ -17,6 +17,7 @@ import ( "github.com/opencode-ai/opencode/internal/config" "github.com/opencode-ai/opencode/internal/logging" "github.com/opencode-ai/opencode/internal/lsp/protocol" + "github.com/opencode-ai/opencode/internal/status" ) type Client struct { @@ -106,7 +107,7 @@ func NewClient(ctx context.Context, command string, args ...string) (*Client, er // Start message handling loop go func() { defer logging.RecoverPanic("LSP-message-handler", func() { - logging.ErrorPersist("LSP message handler crashed, LSP functionality may be impaired") + status.Error("LSP message handler crashed, LSP functionality may be impaired") }) client.handleMessages() }() -- cgit v1.2.3