vscode-extension-dev

VSCode Extension Development

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "vscode-extension-dev" with this command: npx skills add owid/etl/owid-etl-vscode-extension-dev

VSCode Extension Development

Extension locations

Extensions live in vscode_extensions/<name>/ . Each has:

  • src/extension.ts — main source code

  • dist/extension.js — compiled output (esbuild)

  • install/<name>-<version>.vsix — packaged extension

  • package.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 compile may start a watcher that blocks. This is fine for compilation but you still need to package + install.

  • Version conflicts: If the installed .vsix version matches, VSCode may cache. Use --force flag on install.

  • Extension host: Changes only take effect after "Developer: Reload Window".

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

update-dataset

No summary provided by upstream source.

Repository SourceNeeds Review
45-owid
General

streamlit-app

No summary provided by upstream source.

Repository SourceNeeds Review
43-owid
General

check-metadata-typos

No summary provided by upstream source.

Repository SourceNeeds Review
41-owid
General

chart-editing

No summary provided by upstream source.

Repository SourceNeeds Review
21-owid