opencode
opencode copied to clipboard
LSP detection in monorepo not working
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
- Create git root
- Create subfolder with frontend folder
- Init JS project (e.g. npm init)
- 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