Skip to content

jsdoc template tags might be unmatched #32936

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

Merged
merged 2 commits into from
Aug 16, 2019

Conversation

sandersn
Copy link
Member

@sandersn sandersn commented Aug 16, 2019

Quick info tries to find the symbol for a type parameter when you ask for quick info in a @template tag. This applies to TS, where the @template tag isn't actually bound.

But the function might not actually have a matching type parameter. If it doesn't, services currently crashes because it assumes there is always a matching type parameter.

This bug is at least 2.5 years old, based on the git log.

Fixes #32935

@sandersn
Copy link
Member Author

Tests fail because quickinfo actually doesn't return anything in this case. I think that's fine. I updated the test and will merge when CI passes.

@sandersn sandersn merged commit 2b8ccf4 into master Aug 16, 2019
@sandersn sandersn deleted the fix-quickinfo-jsdoc-template-tags branch August 26, 2019 17:32
timsuchanek pushed a commit to timsuchanek/TypeScript that referenced this pull request Sep 11, 2019
* jsdoc template tags might be unmatched

* Update fourslash test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Quickinfo crashes with unmatched template tag in TS
3 participants