vscode-extension-dev
2
总安装量
1
周安装量
#73533
全站排名
安装命令
npx skills add https://github.com/owid/etl --skill vscode-extension-dev
Agent 安装分布
amp
1
cline
1
opencode
1
cursor
1
continue
1
kimi-cli
1
Skill 文档
VSCode Extension Development
Extension locations
Extensions live in vscode_extensions/<name>/. Each has:
src/extension.tsâ main source codedist/extension.jsâ compiled output (esbuild)install/<name>-<version>.vsixâ packaged extensionpackage.jsonâ manifest with activation events, commands, config
Build & install workflow
CRITICAL: VSCode runs the installed .vsix from ~/.vscode/extensions/, NOT the dist/ in the repo. After every code change you MUST:
- Compile:
cd vscode_extensions/<name> && npm run compile - Package:
npx @vscode/vsce package --out install/<name>-<version>.vsix - Install:
code --install-extension install/<name>-<version>.vsix --force - Tell user to reload:
Cmd+Shift+Pâ “Developer: Reload Window”
Just running npm run compile is NOT enough â the user will still see old behavior.
Verifying installed code
To check what code is actually running:
# Check installed extension has your changes
grep "some_unique_string" ~/.vscode/extensions/<publisher>.<name>-<version>/dist/extension.js
Common pitfalls
- esbuild watch mode:
npm run compilemay start a watcher that blocks. This is fine for compilation but you still need to package + install. - Version conflicts: If the installed
.vsixversion matches, VSCode may cache. Use--forceflag on install. - Extension host: Changes only take effect after “Developer: Reload Window”.