Skip to content

[Feature] Upgrade TypeScript compilation target to ES2020 #2609

@ConnorQi01

Description

@ConnorQi01

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"]

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions