Closed
Description
TS and JS Grammar Extension version: 0.0.22 / latest
From microsoft/vscode#34776 (comment)
Feature request
Support highlighting the proposed option chaining syntax for JS/TS
const a = {
b: {
c: {
d: {
e: 1,
g: [1, 2, 3],
},
},
f: null,
},
};
const brokenSyntaxHighlighting = () => {
const array = a?.b?.c?.d?.g;
/**
* No TypeEror, but syntax highlighting is broken
*/
const test = a?.b?.f?.f;
for (let i = 0; i < array.length; i++) {
console.log(array[i]);
}
};
brokenSyntaxHighlighting();
TS support for this is tracked by: microsoft/TypeScript#16
Metadata
Metadata
Assignees
Labels
No labels