You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hovering sayHello in VSCode or Vim/Neovim with coc.nvim doesn't show the docstring. I believe this is because these docstrings aren't added back by svelte2tsx? Edit: it was the language server provider.
Solution
Add docstrings that follow JSDocTSDoc notation (which is what TypeScript uses) into the generated TSX.
Additional context
I found out about this shortcoming while working on a pull request for this #280
I believe the fixes are separate units of work, though.
The text was updated successfully, but these errors were encountered:
I'm a bit confused. I believe the issue isn't actually in svelte2tsx, because (at least going by the tests) comments aren't removed from the produced TSX:
Edit: made a PR to fix it here #282
Problem
In
util.ts
:Then, in some component:
Hovering
sayHello
in VSCode or Vim/Neovim with coc.nvim doesn't show the docstring.I believe this is because these docstrings aren't added back byEdit: it was the language server provider.svelte2tsx
?Solution
Add docstrings that follow
JSDocTSDoc notation (which is what TypeScript uses) into the generated TSX.Additional context
I found out about this shortcoming while working on a pull request for this #280
I believe the fixes are separate units of work, though.
The text was updated successfully, but these errors were encountered: