Does this issue occur when all extensions are disabled?: Yes
VS Code Version: 1.62.3
OS Version: macOS 11.6.1
Steps to Reproduce:
Create a typescript file with the following code:
const obj = {
fn<
K extends string
>(_: K) {
const a = 'a';
function _f() {
const b = 'b';
return b;
}
return a;
},
};
const obj2 = {
fn(_: K) {
const a = 'a';
function _f() {
const b = 'b';
return b;
}
return a;
},
};
2. Notice how the syntax highlighting is broken in the first object declaration:
<img width="566" alt="image" src="https://user-images.githubusercontent.com/36966635/144325213-02cf52d0-669d-45a0-9bf8-d4f4dad18bba.png">
Does this issue occur when all extensions are disabled?: Yes
Steps to Reproduce:
Create a typescript file with the following code:
const obj2 = { fn(_: K) {
const a = 'a';
};