开个帖记录中
转载:
VS Code 插件开发中文文档:
https://liiked.github.io/VS-Code-Extension-Doc-ZH/#/get-started/your-first-extension
https://github.com/Liiked/VS-Code-Extension-Doc-ZH
https://www.cnblogs.com/architectforest/p/15730460.html
开发过程中遇到的问题:
1、关于脚手架yo code报错commmand not found, 重新配置node下bin环境变量
https://www.semicolonworld.com/question/47807/how-to-fix-ldquo-yo-command-not-found-rdquo-after-installing-yeoman
2、关于publish插件时npm install vsce报错,需提前安装好vsce依赖环境:
https://github.com/microsoft/vscode-vsce
LinuxIn order to save credentials safely, this project uses keytar which uses libsecret, which you may need to install before publishing extensions. Setting the VSCE_STORE=file environment variable will revert back to the file credential store. Using the VSCE_PAT environment variable will also avoid using keytar.
Depending on your distribution, you will need to run the following command:
- Debian/Ubuntu: sudo apt-get install libsecret-1-dev
- Alpine: apk add libsecret
- Red Hat-based: sudo yum install libsecret-devel
- Arch Linux: sudo pacman -S libsecret
package.json配置:
https://www.cnblogs.com/imgss/p/13503637.html
https://segmentfault.com/a/1190000017279102