mirror of
https://github.com/harivansh-afk/sandbox-agent.git
synced 2026-04-15 06:04:43 +00:00
823 B
823 B
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/formatterGET /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
/formatterand/lsp. - Add E2E tests that validate formatter/LSP presence for fixture languages.