Преглед изворни кода

properly load typescript lsp in subpaths

Dax Raad пре 7 месеци
родитељ
комит
4a878b88c0
2 измењених фајлова са 2 додато и 1 уклоњено
  1. 1 0
      packages/opencode/src/lsp/client.ts
  2. 1 1
      packages/opencode/src/lsp/server.ts

+ 1 - 0
packages/opencode/src/lsp/client.ts

@@ -179,6 +179,7 @@ export namespace LSPClient {
         l.info("shutting down")
         l.info("shutting down")
         connection.end()
         connection.end()
         connection.dispose()
         connection.dispose()
+        input.server.process.kill()
         l.info("shutdown")
         l.info("shutdown")
       },
       },
     }
     }

+ 1 - 1
packages/opencode/src/lsp/server.ts

@@ -75,7 +75,7 @@ export namespace LSPServer {
               notif.dispose()
               notif.dispose()
               resolve()
               resolve()
             })
             })
-            await lsp.notify.open({ path: hint })
+            await lsp.notify.open({ path: path.join(lsp.root, hint) })
           })
           })
         },
         },
       }
       }