diff --git a/packages/opencode/src/lsp/index.ts b/packages/opencode/src/lsp/index.ts index 2e477579f7..2f5c91b626 100644 --- a/packages/opencode/src/lsp/index.ts +++ b/packages/opencode/src/lsp/index.ts @@ -223,6 +223,7 @@ export namespace LSP { ) const getClients = Effect.fnUntraced(function* (file: string) { + if (!Instance.containsPath(file)) return [] as LSPClient.Info[] const s = yield* InstanceState.get(cache) return yield* Effect.promise(async () => { const extension = path.parse(file).ext || file