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
Fix panic in getTokenAtPosition for JSDoc type assertions
Instead of panicking when encountering an identifier or non-token kind
during trivia scanning, return the current node. This can happen with
JSDoc type assertions like /**@type {string}*/(x) where the identifier
is part of the node's structure but may not be visited as a direct child.
The fix allows getTokenAtPosition to gracefully handle these cases by
returning the containing node, which the type checker can still process
correctly for operations like go-to-definition.
Co-authored-by: jakebailey <[email protected]>
0 commit comments