-
Notifications
You must be signed in to change notification settings - Fork 153
Docs: JSDoc for method decorators don't render properly #292
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Opened issue on the VS Code repo: microsoft/TypeScript#47679 |
Update on the above: The issue on the TS repo was initially included in the TypeScript 4.7.0 milestone but it has now been rescheduled as part of the 4.8.0 milestone (link). The milestone is, at the time of writing this, at 2% completion and includes north of 350 issues. |
The issue still persists, however it appears that using an invisible character (U+2063) in front of the This is not an ideal solution, however we can adopt this workaround so that customers can consume the docstrings and have them rendered correctly. I am subscribed to the upstream issue and will keep an eye on it, if a proper fix is released I'll remove the invisible character. |
|
This is now released under v1.14.1 version! |
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:
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
Related issues, RFCs
N/A
The text was updated successfully, but these errors were encountered: