Skip to content

The open source coding agent.

TypeScript

properly load typescript lsp in subpaths

Dax Raad4a878b88c088
diff --git a/packages/opencode/src/lsp/client.ts b/packages/opencode/src/lsp/client.ts
index 3d0d383ff62..0d34b8699d8 100644
--- a/packages/opencode/src/lsp/client.ts
+++ b/packages/opencode/src/lsp/client.ts
@@ -179,6 +179,7 @@ export namespace LSPClient {
l.info("shutting down")
connection.end()
connection.dispose()
+ input.server.process.kill()
l.info("shutdown")
},
}
diff --git a/packages/opencode/src/lsp/server.ts b/packages/opencode/src/lsp/server.ts
index 006e6731213..09502cb72d5 100644
--- a/packages/opencode/src/lsp/server.ts
+++ b/packages/opencode/src/lsp/server.ts
@@ -75,7 +75,7 @@ export namespace LSPServer {
notif.dispose()
resolve()
})
- await lsp.notify.open({ path: hint })
+ await lsp.notify.open({ path: path.join(lsp.root, hint) })
})
},
}