typescript-vscode-sh-plugin
typescript-vscode-sh-plugin copied to clipboard
TypeScript plugin that proves richer semantic highlighing
Hi. As far as I know. typescript's built-in semantic highlighting doesn't work with js files. https://github.com/microsoft/TypeScript/blob/b1571fcb71501d16f21173979365d4c4d53a11cb/src/services/services.ts#L1888 I checked with the insider version of vscode. Semantic highlight no longer show up...
This is not intended to be merged.
From https://github.com/microsoft/vscode/issues/97551 - VSCode Version: 1.45 - OS Version: Darwin x64 18.7.0 Steps to Reproduce: 1. create a typescript file 2. paste in this code: ```ts type Foo = {...
Reproduced with ``` const x = { xy: function () { this.id = 42; } } ``` The appearance of a `this` makes typescript think this is a class. 
See https://github.com/microsoft/vscode/issues/95867 Reproduce recording:  Source: ``` import * as React from 'react' type SomeProps = { a: number } interface A { (props: P, context?: any): React.ReactElement; } interface...
In the TypeScript TextMate grammar, object literals get the scope `meta.object-literal.key.ts` and class interface properties get `variable.object.property`. ``` const x = { prop1: 1 } interface X { prop2: 1...