mirror of
https://github.com/aljazceru/opencode.git
synced 2026-01-07 09:54:56 +01:00
disable lsp on non-git folders
This commit is contained in:
@@ -57,6 +57,7 @@ export namespace LSP {
|
|||||||
async (app) => {
|
async (app) => {
|
||||||
log.info("initializing")
|
log.info("initializing")
|
||||||
const clients: LSPClient.Info[] = []
|
const clients: LSPClient.Info[] = []
|
||||||
|
if (!app.git) return { clients }
|
||||||
|
|
||||||
for (const server of Object.values(LSPServer)) {
|
for (const server of Object.values(LSPServer)) {
|
||||||
const roots = await server.roots(app)
|
const roots = await server.roots(app)
|
||||||
|
|||||||
Reference in New Issue
Block a user