Ver Fonte

properly load typescript lsp in subpaths

Dax Raad há 7 meses atrás
pai
commit
4a878b88c0

+ 1 - 0
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")
       },
     }

+ 1 - 1
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) })
           })
         },
       }