- Published on
extensions
- Authors
- Name
- Arvin Wei
extensions
installVSIXAction.run(vsixPaths?: URI[]) -> this.extensionsWorkbenchService.install(vsix)
-> extensionService.install(vsix)
安装扩展
vs/platform/extensionManagement/node/extensionManagementService.ts
读取 extension package.json 数据
getManifest(vsix: string)
'extension/package.json'
installFromZipPath(...)
调用扩展
vscode 对象
@types/vscode 声明该对象的接口定义。
src/vs/workbench/api/common/extHost.api.impl.ts 负责该对象的具体实现。
export function createApiFactoryAndRegisterActors(
accessor: ServicesAccessor
): IExtensionApiFactory {}