code --install-extension swagger2struct-1.0.0.vsix
初次打包需要先安装 vsce
yarn global add vsce
vsce package --yarn
命令 | 描述 | 未完成部分 |
---|---|---|
onCommand:extension.generateStruct |
通过 api.swagger2struct.json 生成结构文件 |
|
onCommand:extension.configureApiURLPath |
配置 API doc.json URL(相对于 dev.env.js 中的 BASE_URL 保存的路径值) |
|
onCommand:extension.configureApiJsonFile |
配置 API doc.json 文件路径 |
|
onCommand:extension.configureEnvFile |
配置当前使用的环境配置文件 | |
onCommand:extension.merge |
在 api.swagger2struct.json 中查找当前结构并与当前结构文件合并 |
|
onCommand:extension.sync |
查看帮助文档 | |
onCommand:extension.help |
同步后端的 API doc.json 到本地 |
...
If you have any requirements or dependencies, add a section describing those and how to install and configure them.
Calling out known issues can help limit users opening duplicate issues against your extension.
Users appreciate release notes as you update your extension.
- 初步完成保存配置项及通过
API
doc.json
生成struct
文件