esm notes (#7569)
This commit is contained in:
Родитель
23d9eed653
Коммит
d3639a7419
|
@ -413,6 +413,10 @@ There has been more progress on the [GitHub Pull Requests](https://marketplace.v
|
|||
|
||||
## Extension authoring
|
||||
|
||||
### Impact of EcmaScript Module (ESM) Loading of VS Code
|
||||
|
||||
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 be `undefined` beginning with our `1.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](https://github.com/microsoft/vscode/issues).
|
||||
|
||||
### Terminal shell integration API
|
||||
|
||||
The terminal shell integration API is now available to use. This powerful API enables an extension to listen to commands run in terminals, read their raw output, exit code, and command lines.
|
||||
|
|
Загрузка…
Ссылка в новой задаче