2.2 KiB
2.2 KiB
| id | ticket | title | status | created | ref_decisions | tags | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| PLN-0098 | pbs-symbol-documentation-and-hover-markdown | Expose Doc metadata through PBS editorial and LSP surfaces | done | 2026-07-15 |
|
|
Briefing
Transport compiler-resolved documentation through the existing PBS editorial and LSP message boundaries.
Objective
Expose normalized Markdown documentation to LSP consumers without source reparsing.
Dependencies
- Depends on
PLN-0097.
Scope
- Extend compiler editorial result models to include documentation metadata.
- Extend LSP baseline messages where required.
- Keep documentation as Markdown-oriented structured data at the boundary.
Non-Goals
- Final hover layout composition.
- VSCode automated rendering tests.
- Runtime artifact changes.
Execution Method
- Extend PBS editorial models such as
PbsEditorialResolvedSymbol, completion candidates, or hover source models with optional documentation metadata. - Extend LSP API records under
prometeu-lsp/prometeu-lsp-api/src/main/java/p/studio/lsp/messagesonly where the baseline protocol needs to carry documentation. - Update bridge code under
prometeu-lsp/prometeu-lsp-v1/src/main/java/p/studio/lsp/services/compilerto map compiler documentation to LSP baseline messages. - Preserve backward-compatible behavior for symbols without documentation.
- Add tests proving the LSP service receives compiler-resolved documentation.
Acceptance Criteria
- LSP-facing code consumes compiler-resolved documentation metadata.
- No LSP code reparses PBS source to discover
[Doc]. - Existing completion, hover, and signature help behavior remains stable for undocumented code.
Tests
- PBS editorial support tests.
- LSP bridge tests.
- Existing
prometeu-lspprotocol mapping tests.
Affected Artifacts
prometeu-compiler/frontends/prometeu-frontend-pbs/src/main/java/p/studio/compiler/pbs/semantics/PbsEditorialResolvedSymbol.javaprometeu-lsp/prometeu-lsp-api/src/main/java/p/studio/lsp/messagesprometeu-lsp/prometeu-lsp-v1/src/main/java/p/studio/lsp/services/compiler- Related LSP tests