2.0 KiB
2.0 KiB
| id | ticket | title | status | created | ref_decisions | tags | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| PLN-0099 | pbs-symbol-documentation-and-hover-markdown | Render Doc markdown in hover composition | open | 2026-07-15 |
|
|
Briefing
Use transported documentation metadata in hover output while preserving the compiler/LSP/editor ownership boundary.
Objective
Compose hover Markdown from signature/kind metadata and normalized [Doc] documentation.
Dependencies
- Depends on
PLN-0098.
Scope
- Add documentation content to PBS hover composition.
- Keep Markdown rendering responsibility in the editor/client.
- Preserve hover behavior for undocumented symbols.
Non-Goals
- Automate VSCode visual tests.
- Define a full documentation website generator.
- Change signature help parameter documentation behavior.
Execution Method
- Locate the PBS hover composition path in
PbsEditorialSupportServiceand LSP bridge/mapping code. - Compose hover Markdown in deterministic order: signature/kind surface, documentation Markdown, then origin/type/shape metadata as currently appropriate.
- Avoid escaping or reflowing normalized Markdown beyond safe composition separators.
- Ensure undocumented symbols keep existing hover output.
- Add hover tests with paragraphs, lists, and code spans from
[Doc].
Acceptance Criteria
- Hover includes normalized authored Markdown for documented symbols.
- Hover does not include empty documentation sections.
- Markdown lists do not become accidental code blocks due to indentation.
- VSCode validation remains manual for this wave.
Tests
- PBS editorial hover tests.
- LSP hover mapping tests that assert
MarkupKind.MARKDOWNpayloads.
Affected Artifacts
PbsEditorialSupportServiceprometeu-lsp/prometeu-lsp-v1/src/main/java/p/studio/lsp/services/compilerprometeu-lsp/prometeu-lsp-v1/src/main/java/p/studio/lsp/services/protocol/mapping- Hover-related tests