The extension is installed normally (for example, from the marketplace or VSIX) in the editor.
The extension is running from an --extensionDevelopmentPath
provided
when launching the editor.
The extension is running from an --extensionTestsPath
and
the extension host is running unit tests.
友链:VS Code 中文文档 | VS Code 官网文档 | VS Code 扩展市场
The ExtensionMode is provided on the
ExtensionContext
and indicates the mode the specific extension is running in.