microsoft / microsoft/vscode

BUG: Inconsistent token highlight

Open
#325,427 1 comment 0 reactions 1 assignee Claimed by @hediet View on GitHub
Dominant language
TypeScript
Stars
193k
Forks
42.4k
PR merge metrics
PR metrics pending

Description

Does this issue occur when all extensions are disabled?: Yes

- VS Code Version: 1.128.0
- OS Version: Windows_NT x64 10
- Commit: fc3def6774c76082adf699d366f31a557ce5573f

Steps to Reproduce:

1. Open new text window, choose `typescript` lang
2. Put code:
```ts
const test = {
firstMethod() {
return this;
},

secondMethod<
T extends any
>(callback: T) {
return this;
},
};
```
3. Parts of code `return this;` are highlighted differently by editor:

Image

**But must be colored exactly the same**

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.