chore: specs for unimplemented work (#70)

This commit is contained in:
Nathan Flurry 2026-02-04 13:45:31 -08:00 committed by GitHub
parent ef3e811c94
commit 8a31519786
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
14 changed files with 367 additions and 0 deletions

View file

@ -0,0 +1,21 @@
# Spec: Formatter + LSP Integration
**Proposed API Changes**
- Add a formatter service and LSP status registry to the core session manager.
- Provide per-language formatter availability and LSP server status.
**Summary**
OpenCode surfaces formatter and LSP availability via dedicated endpoints. We need real integration (or at minimum, real status introspection).
**OpenCode Endpoints (Reference)**
- `GET /opencode/formatter`
- `GET /opencode/lsp`
**Core Functionality Required**
- Discover available formatters by language in the workspace.
- Track LSP server status (running, capabilities).
- Optional API to trigger formatting for a file (future extension).
**OpenCode Compat Wiring + Tests**
- Replace stubs for `/formatter` and `/lsp`.
- Add E2E tests that validate formatter/LSP presence for fixture languages.