Skip to content

Issue with function highlight using typescript generics and complex return type #47910

@dstoyanoff

Description

@dstoyanoff

Hello,
I have an issue with syntax highlighting which I cannot find myself. As you can see on the picture, I have two generic functions, one of which is correctly formatted and one is not.

image

What I've tried so far and made it work:

  • Removed generic parameter
  • Returned simple Promise

As the type "IKeyValuePair" is also generic, I think there is some issue there. Any help is appreciated.

Build is passing without issues, so it is just visual.

  • VSCode Version: 1.23.0-insiders
  • OS Version: Win 10

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable buggrammarSyntax highlighting grammarjavascriptJavaScript support issuesupstreamIssue identified as 'upstream' component related (exists outside of VS Code)verifiedVerification succeeded

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions