Skip to content

A shortcoming of grammar color displaying in typescript #376

@mjbvz

Description

@mjbvz

From @BirdLeeSCUT on December 2, 2016 13:2

  • VSCode Version: 1.7.2
  • OS Version: Windows 10 x64

Steps to Reproduce:
There is a shortcoming of grammar color displaying in typescript, as follow:

image

 interface Itest {
	a: 'a1' // a1 is good
		| 'a2' // a2 is good
		| 'a3' // a3 is good
	b: {
		a: 'a1'
			| 'a2' // oh , the color is not good !
			| 'a3' // oh , the color is not good !
	}
}

Sometimes we want to give clear indication of the meanings of every items of String Literal Types in inline comment, so we would break String Literal Types into many lines.

Copied from original issue: microsoft/vscode#16385

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions