From d08e58279db42b9892ad32e0fd8cdf086b4027d5 Mon Sep 17 00:00:00 2001 From: adamdottv <2363879+adamdottv@users.noreply.github.com> Date: Thu, 1 May 2025 06:26:20 -0500 Subject: feat: lsp discovery --- cmd/root.go | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'cmd') diff --git a/cmd/root.go b/cmd/root.go index ab81f7120..f288c9f69 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -14,6 +14,7 @@ import ( "github.com/opencode-ai/opencode/internal/db" "github.com/opencode-ai/opencode/internal/llm/agent" "github.com/opencode-ai/opencode/internal/logging" + "github.com/opencode-ai/opencode/internal/lsp/discovery" "github.com/opencode-ai/opencode/internal/pubsub" "github.com/opencode-ai/opencode/internal/tui" "github.com/opencode-ai/opencode/internal/version" @@ -58,6 +59,12 @@ to assist developers in writing, debugging, and understanding code directly from return err } + // Run LSP auto-discovery + if err := discovery.IntegrateLSPServers(cwd); err != nil { + logging.Warn("Failed to auto-discover LSP servers", "error", err) + // Continue anyway, this is not a fatal error + } + // Connect DB, this will also run migrations conn, err := db.Connect() if err != nil { -- cgit v1.2.3