Skip to content
Back to skills

Vscode Extension Dev

ASecurity

VS Code extension development patterns — command registration, terminal launch, workspace folder handling, CI/CD pipeline with version enforcement and marketplace publishing. Use when developing extension features, adding commands, or modifying the build/publish pipeline.

  • 2 stars
  • 0 votes
  • 0 copies
  • 9 views
  • Added September 3, 2026
developmentgitci/cd

Works with

  • vscode
  • terminal

Security analysis

A92/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro shows the line behind each finding and how to fix it

Scanned September 3, 2026

npx -y skills add yazilim-vip/claude-workspace-launcher --skill vscode-extension-dev --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Vscode Extension Dev?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Vscode Extension Dev
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/yazilim-vip-vscode-extension-dev/badge)](https://www.skillsdirectory.com/skills/yazilim-vip-vscode-extension-dev)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: vscode-extension-dev
description: >
  VS Code extension development patterns — command registration, terminal launch,
  workspace folder handling, CI/CD pipeline with version enforcement and marketplace
  publishing. Use when developing extension features, adding commands, or modifying
  the build/publish pipeline.
---

# VS Code Extension Development

## Architecture

Single-file extension — all logic in `src/extension.ts`.

### Core Functions

| Function | Purpose |
|----------|---------|
| `buildClaudeArgs(folders, extra)` | First folder = cwd, rest become `--add-dir` flags |
| `ensureWorkspaceFolders()` | Validates workspace has folders |
| `launchClaude(args, cwd)` | Creates VS Code terminal, runs `claude ...args` |
| `activate(context)` | Registers 3 commands |

### Commands

| Command | ID | Behavior |
|---------|----|----------|
| Claude: Start Session | `claude-workspace.startSession` | Prompts for session name, passes `--name` |
| Claude: Continue Last Session | `claude-workspace.continueSession` | Passes `--continue` flag |
| Claude: Resume Session | `claude-workspace.resumeSession` | Passes `--resume` flag |

## CI/CD Pipeline

4-stage pipeline in `.github/workflows/ci.yml`:

1. **version-check** (PRs only) — ensures `package.json` version bumped vs main
2. **build** — `npm ci` + compile + `vsce package`, uploads `.vsix` artifact
3. **publish** (main only) — publishes to VS Code Marketplace via `VSCE_PAT`
4. **release** (main only) — creates GitHub Release with tag + `.vsix` attachment

## Key Rules

- Never push directly to `main` — PR required
- Every PR must bump version in `package.json` (CI enforces this)
- Version bumps: major (breaking), minor (features), patch (fixes/docs)
- No bundler — tsc compiles directly to `out/` (CommonJS)
- No runtime dependencies — keep it lightweight

## Commands

| Task | Command |
|------|---------|
| Install deps | `npm install` |
| Compile | `npm run compile` |
| Watch | `npm run watch` |
| Package VSIX | `npx @vscode/vsce package` |

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.