Skip to content

Weird syntax highlight of TypeScript function return type when array #23669

@InDieTasten

Description

@InDieTasten
  • VSCode Version: 1.10.2
  • OS Version: Windows 10 Pro (64 bit) [Microsoft Windows [Version 10.0.14393]]
  • TypeScript Version: 2.2.1

Steps to Reproduce

  1. Create new TypeScript file
  2. Write a new class
  3. Add property using "prop" snippet with some name and type any[]

Result

The syntax highlight of the property type is shown as in screenshot below

Expected result

The brackets of the array type should be highlighted in white as well. (I'm using the default color scheme)


Screenshot

image


EDIT: Also just found this to be the case on function normal function return types, even when there is a union return type
image

Metadata

Metadata

Assignees

Labels

javascriptJavaScript support issueslanguages-basicBasic language support issuestypescriptTypescript support issues

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions