-
Notifications
You must be signed in to change notification settings - Fork 12.5k
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
Handle JSDoc {@link ... }
inline tags
#16498
Comments
{@link ... }
inline blocks{@link ... }
inline tags
Just an FYI to VSCode users: you can use Markdown, which will render properly in the quick info popover UI. You won't get the syntax highlighting, though.
You can also just use a plain URL now
|
Does this also address |
It would be awesome if links to language entities also worked with refactoring, so you can safely refactor entity names without invalidating documentation that talks about those members. |
This doesn't seem to be fixed in the latest release. Any update? |
@Rhysjc we're still accepting PRs for this one. This is primarily a parsing problem, and not an easy one, since Any solution will also have to decide whether |
Linking to the VS UserVoice as well: https://visualstudio.uservoice.com/forums/121579-visual-studio-ide/suggestions/12796299-support-jsdoc-link-in-typescript |
For what it is worth, I have written up my understanding of how the behaviour should be for rendering according to the cases specified on the Use JSDoc website. See my duplicate, now closed, issue: microsoft/vscode#57495 (comment) |
What's going to happen with that issue? :) |
VS Code 1.43 insiders will add support for @sandersn We are still blocked on Related #35524 |
#35524 is a good start on a proposal. Let's track Typescript-based handling of |
@mjbvz @sandersn just throwing it out there, if a "horrible regex to handle this" is on the table, could we at least put that handling in the language service (e.g. in the implementation of quickinfo, or wherever else we want to surface this) instead of VS Code? This way all editors get the benefit but we can still defer the trickier parsing questions to #35524. |
Yes, I think it is at this point. |
after 2 years {@link ...} still not work? |
It's a complex issue. As you can see, it depends on TSServer functionality which is not ready. This is more complicated than it seems because of information that needs to come from context. But it seems to be coming soon. |
Didn't see any mention of |
The issue continues here with more detail: #35524 |
The bottom of this page should be updated with the new issue tracking link, if People coming here from there (myself included), see this as closed and assume Is there a repo I can file a bug for that site to get it updated? |
Cool, I've updated the number on staging - it'll either get deployed some time this week or on the normal Monday deploy cycle. |
This issue should not be closed, this still happens in the latest version. |
Any update on this issue? This issue should not be closed. |
I'm using the regular stable release. As this issue was tagged as merged in May 2020, it would be merged for almost a whole year. Surely, it wouldn't still be stuck in nightly after all this time ? |
This issue only related to Just read the comments on this thread: |
@MartinJohns looks like it doesn't work for me still. Links in hover popups aren't clickable and doesn't look like URLs
It only start to work when I put link into brackets or some other characters like this |
@MikeYermolayev please open a new issue for this. I believe the space after |
Both the original issue, the issue of it only working with brackets and the issue with the erroneous space are all fixed in the current version, so I am unsubscribing to this issue - thank you for fixing this! |
There is currently a disconnect, i believe due to evolution of the I am not completely sure which side the disconnect is on, (typescript language service/vscode/typedoc/tsdoc) but the @link provides a LOT of opportunity to help users learn how to use a package as they actually code rather than referencing external website all the time. I am leaning towards this being a
|
@bradennapier for the vscode side of the example you give in the bug you link, name resolution is happening using normal typescript rules. I don't expect to change that. The typedoc resolution looks like a bug to me -- whether it's a spec bug or an implementation bug I'm not sure. |
@sandersn yes that is as I thought, just wanted to make sure to mention here in case something seemed odd! Definitely better to resolve via actual imported values than always trying to match symbols globally -- can imagine that would get out of hand quickly. Thanks for the reply, I appreciate your time. |
From: microsoft/vscode#28624
TypeScript Version: 2.3.5
Code
Hover over
foo
Bug
The following docs are returned:
The text was updated successfully, but these errors were encountered: