Development
vscode-deploy-package
Package the extension into a .vsix file for distribution.
Package the extension into a .vsix file for distribution.
Use this skill when the development is complete and the user wants to install the extension or share it.
vsce: Ensure the packaging tool is installed.
npm install -g vsce
vsce package
.vsix file (e.g., my-extension-0.0.1.vsix).Before packaging, ensure:
package.json has a valid publisher field. (If not, user can use any string for local testing, e.g., "local").README.md is updated.CHANGELOG.md is updated.To install the .vsix file:
code --install-extension my-extension-0.0.1.vsix确保开发环境已安装必要的依赖和工具。
根据项目需求进行基础配置。
按照示例代码实现核心功能。
运行测试确保功能正常。
完成开发后进行部署和监控。