Skip to content

Bad syntax highlighting on multi-line typescript generics #26485

@testerez

Description

@testerez
  • VSCode Version: 1.12
  • OS Version: OSX 10.12.4

Steps to Reproduce:

  1. Write a multiline generic in a .ts file
  2. The colors should be the same as if it was on a single line but it's not:

Single line is alright
screen shot 2017-05-11 at 3 45 40 pm

On multiline OwnProps & ReduxStateProps becomes blue
screen shot 2017-05-11 at 3 40 57 pm

Here is a simpler example:

class Test<A, B>{}
class Favorite extends Test<
  string | number,
  undefined
> {
  // class content  
}

screen shot 2017-05-11 at 4 39 49 pm

Metadata

Metadata

Assignees

Labels

languages-basicBasic language support issuestypescriptTypescript support issuesupstreamIssue identified as 'upstream' component related (exists outside of VS Code)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions