Summary
tsconfig.json currently targets es6 / lib: ["es2015"]. The extension requires
VS Code ^1.75.0 (Electron 22+, V8 10+) and CI runs on Node 20, both of which fully
support ES2020 features (optional chaining, nullish coalescing, BigInt, Promise.allSettled, etc.).
Keeping the target at ES6 means the TypeScript compiler downgrades modern syntax
unnecessarily, producing larger and less readable output.
Proposed change
Update tsconfig.json:
"target": "es6" → "target": "es2020"
"lib": ["es2015"] → "lib": ["es2020"]
Summary
tsconfig.jsoncurrently targetses6/lib: ["es2015"]. The extension requiresVS Code
^1.75.0(Electron 22+, V8 10+) and CI runs on Node 20, both of which fullysupport ES2020 features (optional chaining, nullish coalescing,
BigInt,Promise.allSettled, etc.).Keeping the target at ES6 means the TypeScript compiler downgrades modern syntax
unnecessarily, producing larger and less readable output.
Proposed change
Update
tsconfig.json:"target": "es6"→"target": "es2020""lib": ["es2015"]→"lib": ["es2020"]