Skip to content

Docs: JSDoc for method decorators don't render properly #292

Closed
@dreamorosi

Description

@dreamorosi

Description of the improvement

Summary of the proposal
Currently hovering on a decorator in VS Code shows an unindented code example with also additional characters (*) around the decorator name. This, aside from the fact that decorators are still experimental in TypeScript, is probably due to either the @ sigil conflicting with JSDocs (which uses the same symbol to delimit sections) and/or VS Code itself.

Discussion of the issue here.

TODO:

  • Create isolated code sample
  • Test if this is an issue in other IDEs (like the IntelliJ ones)
  • Open an issue on the TS or VS Code repos

How, where did you look for information
Hover on a decorator while on VS Code.

Missing or unclear documentation
N/A

Improvement
The code example should be indented & highlighted/rendered properly.

Related existing documentation

image

Related issues, RFCs

N/A

Metadata

Metadata

Assignees

Labels

completedThis item is complete and has been merged/shippeddocumentationImprovements or additions to documentation

Type

No type

Projects

Status

Shipped

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions