mirror of
https://github.com/aljazceru/opencode.git
synced 2025-12-24 11:14:23 +01:00
disable lsp on non-git folders
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user