Impact of EcmaScript Module (ESM) Loading of VS Code #1612
isidorn
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
We are in the process of changing how our code is loaded in VS Code core, away from AMD/CommonJS to ESM. Extensions will continue to load as CommonJS, but this change comes with change to the
require
method: Specifically,require.main
will beundefined
beginning with our1.94
release.If you have a usecase for accessing a file from the installation, please consider
vscode.env.appRoot
instead or reach out to us.Beta Was this translation helpful? Give feedback.
All reactions