Ver Fonte

disable lsp on non-git folders

Dax Raad há 8 meses atrás
pai
commit
85d95f0f2b
1 ficheiros alterados com 1 adições e 0 exclusões
  1. 1 0
      packages/opencode/src/lsp/index.ts

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

@@ -57,6 +57,7 @@ export namespace LSP {
     async (app) => {
       log.info("initializing")
       const clients: LSPClient.Info[] = []
+      if (!app.git) return { clients }
 
       for (const server of Object.values(LSPServer)) {
         const roots = await server.roots(app)