mirror of
https://github.com/sst/opencode.git
synced 2025-12-23 10:11:41 +00:00
disable lsp on non-git folders
This commit is contained in:
parent
1515efc77c
commit
85d95f0f2b
1 changed files with 1 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue