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
{{ message }}
Repository navigation
Syntax highlighting can not resolve @throws of tsdoc #58599
Syntax highlighting for typescript has problem for the function that has @throws .
TSDoc used @throws {@link IsbnSyntaxError} format but VSCode shows broken lint text with break-lines like below:
// from tsdoc sample: https://tsdoc.org/pages/tags/throws/typeBook=any;/** * @throws {@link IsbnSyntaxError} * This exception is thrown if the input is not a valid ISBN number. */functionfetchBookByIsbn(isbnCode: string): Book{}
I thought vscode does not support tsdoc and using jsdoc but jsdoc does not shows correct info too. (this may be related with: microsoft/vscode#135417 )
I expected it shows a link for the Type, at least shows as simple text without break-line.
I used vscode's report feature but now I noticed issued on typescript repo.
VSCode created this ticket automatically without my chooing (I didn't select typescript name).
If this should be reported on vscode repo, so sorry, I will close this and copy this there.
Thank you for your replying and sorry about taking your time.
I don't know about correct English word so used syntax-highlighting name but I'd like to say about the link in hover-info.
I tried to drop @link then I got below situation:
{@link Class} that in description part has a link on both code and hover-info.
In my understanding, vscode has a link on both. I expected this working for type part too.
[JSDoc] @throws {Class} has a link on code but not in hover.
[TSDoc] @throws {@link Class} does not have a link on both and hover has broken text.
(above {@link IsbnSyntaxError} is green color like 2nd too but does not have a link)
Therefore I wished 2 points:
TSDoc format shows not broken text at least
JSDoc or TSDoc format have a link on hover too
I wished hover-info has correct link to read ErrorClass info at the function is called as same as @link on description part.
And I can use jsdoc format but I wish to support tsdoc style too for ts code if possible.
Reacted by Ravindu Liyanapathirana, somnicattus and Curtis Fenner
Activity
[-]Syntax highlighting can not show @throws of tsdoc[/-][+]Syntax highlighting can not resolve @throws of tsdoc[/+]nabe1653 commentedon May 21, 2024
I used vscode's report feature but now I noticed issued on typescript repo.
VSCode created this ticket automatically without my chooing (I didn't select typescript name).
If this should be reported on vscode repo, so sorry, I will close this and copy this there.
MartinJohns commentedon May 21, 2024
The issue was transferred to the TypeScript repo by mjbvz.
According to #49891 this should work if you drop the
@link.nabe1653 commentedon May 22, 2024
Thank you for your replying and sorry about taking your time.
I don't know about correct English word so used syntax-highlighting name but I'd like to say about the link in hover-info.
I tried to drop
@linkthen I got below situation:{@link Class}that in description part has a link on both code and hover-info.In my understanding, vscode has a link on both. I expected this working for type part too.
[JSDoc]


@throws {Class}has a link on code but not in hover.[TSDoc]


@throws {@link Class}does not have a link on both and hover has broken text.(above
{@link IsbnSyntaxError}is green color like 2nd too but does not have a link)Therefore I wished 2 points:
I wished hover-info has correct link to read ErrorClass info at the function is called as same as
@linkon description part.And I can use jsdoc format but I wish to support tsdoc style too for ts code if possible.