typescript-vscode-sh-plugin icon indicating copy to clipboard operation
typescript-vscode-sh-plugin copied to clipboard

TypeScript plugin that proves richer semantic highlighing

Results 9 typescript-vscode-sh-plugin issues
Sort by recently updated
recently updated
newest added

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...

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. ![image](https://user-images.githubusercontent.com/6461412/81301366-41f15900-9079-11ea-95fb-47ae31998cd7.png)

See https://github.com/microsoft/vscode/issues/95867 Reproduce recording: ![semantic-highlighting-vscode-issue](https://user-images.githubusercontent.com/5468398/79977826-7b4e9400-84d1-11ea-9bf7-5d6a0e07e4ea.gif) 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...