Skip to content

The open source coding agent.

TypeScript

fix: ensure gopls lsp id matches docs (#2344)

Régis Blanc37530359ee0b
diff --git a/packages/opencode/src/lsp/server.ts b/packages/opencode/src/lsp/server.ts
index 9861a57986d..e797d900a8d 100644
--- a/packages/opencode/src/lsp/server.ts
+++ b/packages/opencode/src/lsp/server.ts
@@ -193,7 +193,7 @@ export namespace LSPServer {
}
export const Gopls: Info = {
- id: "golang",
+ id: "gopls",
root: async (file, app) => {
const work = await NearestRoot(["go.work"])(file, app)
if (work) return work