opencode icon indicating copy to clipboard operation
opencode copied to clipboard

LSP detection in monorepo not working

Open evanreichard opened this issue 5 days ago • 1 comments

Description

In e.g. monorepos, where e.g. the frontend is separate from the backend, the eslint & tsserver LSP doesnt get enabled if starting opencode in the git root. If you go into the frontend folder, then LSP will properly enable.

NOTE: debug lsp diagnostics still shows it working in both, but it never gets enabled when reading or writing a file unless you start in the ./frontend root.

Plugins

N/A

OpenCode version

1.1.12

Steps to reproduce

  1. Create git root
  2. Create subfolder with frontend folder
  3. Init JS project (e.g. npm init)
  4. Open opencode in ./frontend -> LSP works, open opencode in ./, LSP doesnt.

Screenshot and/or share link

No response

Operating System

No response

Terminal

No response

evanreichard avatar Jan 10 '26 19:01 evanreichard