Skip to content

ESM for extensions - #245214

Merged
Johannes Rieken (jrieken) merged 8 commits into
mainfrom
joh/aggregate-cod
Apr 1, 2025
Merged

Johannes Rieken (jrieken) merged 8 commits into
mainfrom
joh/aggregate-cod

Conversation

@jrieken

@jrieken Johannes Rieken (jrieken) commented Apr 1, 2025 •

Copy link
Copy Markdown
Contributor

This is for #130367 and adds native ESM support for extensions.

  • use import to load extensions (when they signal ESM support via type: module or the .mjs suffix
  • enables import('vscode') for extensions the same way require('vscode') works
  • enables other, regular ESM imports
  • enables ESM extension tests

Support is ONLY for the nodejs extension host and not yet for the web worker extension host.

@jrieken Johannes Rieken (jrieken) added this to the April 2025 milestone Apr 1, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants