Skip to content

Allow docCommentTemplate before Function Expressions #14280

@mjbvz

Description

@mjbvz

From microsoft/vscode#21237

TypeScript Version: 2.2.1

Code

(
|
 function add(a, b) {}   
)

Request docCommentTemplate from TSServer at the |

Expected behavior:
Returns a template with the parameters for add

Actual behavior:
Since the docCommentTemplate is requested inside of an expression, no result is returned. Reading through the implementation of docCommentTemplate, this seems to be by-design currently

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptFixedA PR has been merged for this issueHelp WantedYou can do thisVS Code TrackedThere is a VS Code equivalent to this issue

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions