Skip to content

Conversation

@andrewbranch
Copy link
Member

The trick is including the initial /** */ characters in the fourslash content, as that more accurately represents the state of the file when VS Code sends the request. Without that, the token at the request position would be exports, giving you the opportunity to walk up the parse tree through BinaryExpression, which was already accounted for. But if you start inside an empty JSDoc comment, you only walk through JSDocComment -> ExpressionStatement -> SourceFile.

Fixes #30848

Copy link
Contributor

@orta orta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me

@andrewbranch andrewbranch merged commit 547fd12 into microsoft:master Apr 20, 2020
@andrewbranch andrewbranch deleted the bug/30848 branch April 20, 2020 18:15
@microsoft microsoft locked as resolved and limited conversation to collaborators Oct 21, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

docCommentTemplate not returned for function in export assignment

4 participants