26 lines
1.3 KiB
Markdown
26 lines
1.3 KiB
Markdown
|
|
# Sprint 277: LSP Advanced Orchestration (Steps 1913–1917)
|
|||
|
|
|
|||
|
|
## Goal
|
|||
|
|
Build the workspace-level LSP infrastructure that sits above the LSP proxy:
|
|||
|
|
document tracking, diagnostics aggregation, completion merging, and a top-level
|
|||
|
|
orchestrator that ties them together.
|
|||
|
|
|
|||
|
|
## Steps
|
|||
|
|
|
|||
|
|
| Step | File | What |
|
|||
|
|
|------|------|------|
|
|||
|
|
| 1913 | `LSPWorkspaceIndex.h` | Track open documents: URI → {languageId, content, version}. open/update/close/query. |
|
|||
|
|
| 1914 | `LSPDiagnosticsAggregator.h` | Collect Diagnostic records from multiple language server sources; merge by URI. |
|
|||
|
|
| 1915 | `LSPCompletionMerger.h` | Collect CompletionItem lists from multiple sources; deduplicate by label. |
|
|||
|
|
| 1916 | `LSPOrchestrator.h` | Top-level coordinator: workspace index + definition routing + diagnostics + completions. |
|
|||
|
|
| 1917 | Sprint 277 integration | poly-api (Go+TS): open docs, aggregate diagnostics, merge completions, goto-def via orchestrator. |
|
|||
|
|
|
|||
|
|
## Dependencies
|
|||
|
|
- Builds on: `LSPProxyServer.h`, `LanguageServerRouter.h`, `CrossLanguageDefinitionResolver.h`
|
|||
|
|
- `LSPOrchestrator` owns/composes: `LSPWorkspaceIndex`, `LSPDiagnosticsAggregator`, `LSPCompletionMerger`
|
|||
|
|
|
|||
|
|
## Acceptance Criteria
|
|||
|
|
- All 5 step tests pass (5 tests each)
|
|||
|
|
- `file_limits_test` passes (all headers ≤ 600 lines)
|
|||
|
|
- Integration: poly-api project routes Go→TS completion + diagnostics through orchestrator
|