NicoC NicoC - 8 months ago 50
TypeScript Question

No class color syntax highlighting in TypeScript, in VS2015

I'm using Typescript in VS2015, and the color syntax highlighting fells broken, especially on class types.

For example, when defining this module:

child module

And using it:

parent module

The class name is long but colored.

But if I use an import statement to get a more usable class name, I get this:

parent module with bad highlighting

That isn't very readable...
I am doing something wrong?


Not 100% sure, but I think it should be. The fact is that the type is declared using the keyword "import" statement, so the analyzer considers variable as module rather than as a class, and therefore no highlights it.

But if you use the keyword "type", the class name will be highlighted