在隔离环境启动 VS Code OSS,便于联动自动化操作与多进程调试。
复制安装指令,让 AI 自动完成配置 · 推荐新手
请帮我安装 askskill 上的 "launch" 技能: 1. 下载 https://raw.githubusercontent.com/microsoft/vscode/main/.agents/skills/launch/SKILL.md 2. 保存为 ~/.claude/skills/launch/SKILL.md 3. 装好后重载技能,告诉我可以用了
启动 launch 技能打开 Code OSS,并使用独立 profile。随后配合 Playwright 自动打开聊天面板、发送一条测试消息,同时让我可以附加调试器到 renderer 和 extension host 进程。
启动后的 Code OSS 会话,可执行聊天 UI 自动化,并能同时附加到相关进程调试。
用 launch 技能启动一个临时 Code OSS 会话,自动进入指定工作区并复现侧边栏显示异常;过程中截取截图,并让我在 main process 设置断点排查问题。
一个可复现问题的隔离会话,包含自动化操作、截图结果,以及可用于断点排查的调试连接。
请通过 launch 技能启动 Code OSS,并为调试端口单独分配唯一值。然后运行一段 Playwright 流程,安装并启用我的扩展,触发命令面板操作,同时附加到 extension host 观察执行状态。
一个支持扩展安装、界面自动测试与 extension host 联合调试的运行会话。
You're working on VS Code itself and you want to:
@playwright/cli over CDP (UI automation).This skill provides a launcher that clones an authenticated user-data-dir to a throwaway temp folder, picks free ports for every debug surface, and prints them as JSON so you can pick them up programmatically.
The clone is slim: workspace storage, browser caches, file history, cached VSIX backups, and old logs are excluded by default. Auth tokens themselves live in the OS keychain (shared automatically) plus small files inside User/globalStorage - both of which are preserved.
rsync, curl, nohup, and Node on PATH. The example caller snippets below also use jq (parse the JSON output) and lsof (kill-by-port fallback) — install those if you plan to use them, but the launcher itself does not require them.node_modules/ installed (npm install if missing — do not symlink from a sibling worktree; that breaks builds in subtle ways).npm run compile once (one-shot) or npm run watch for incremental rebuilds. Both build the full client and all built-in extensions under extensions/. You must build the full product to run successfully, building just the client is not enough.~/.vscode-oss-dev, which is the user-data-dir the repo's launch.json configs use - if the user has ever signed in to Copilot in a dev build, this should work. Only pass --source-user-data-dir <path> (or set $CODE_OSS_DEV_AUTHED_USER_DATA_DIR) when you specifically want to seed from a different profile (e.g. your regular ~/Library/Application Support/Code install).
@playwright/cli available (it's a devDependency in the vscode repo - npm install then use npx @playwright/cli).dap-cli on PATH. If debugger support would be useful but the dap-cli skill is not present, prompt the user to install it from https://github.com/roblourens/dap-cli.eval stops working, take a fresh snapshot, inspect the current DOM, and update the selector rather than assuming an old one still applies.The launcher copies the source profile to a temp dir and never mutates the original. Each launch gets its own isolated
--user-data-dirand--extensions-dir.
The launcher always sets
files.simpleDialog.enable: truein the launched profile'sUser/settings.json. This is required for automation: VS Code's native OS file dialogs cannot be driven via@playwright/cliover CDP and are completely unreachable over SSH on headless macOS. The simple (quick-input) dialog can be navigated withpressand clipboard paste. The override is per-launch and only affects throwaway profiles.
The launcher script lives next to this SKILL.md at scripts/launch.sh. Resolve it relative to wherever this skill file is installed - do not hardcode an absolute path.
# LAUNCH=<dir-of-this-SKILL.md>/scripts/launch.sh
"$LAUNCH" # default: workbench
"$LAUNCH" --agents # Agents window
"$LAUNCH" -- <workspace-path> # forward extra args to code.sh
"$LAUNCH" --source-user-data-dir <path> # pick a specific authed profile
…
帮助开发者创建和维护组件截图测试夹具,并优化组件的可测试性。
帮助开发者验证 Azure DevOps 流水线改动,快速排查构建与 YAML 配置问题。
帮助开发者新增、修改或审查 VS Code 配置策略,并生成平台相关产物。
运行聊天性能基准与内存泄漏检查,定位聊天界面回归和性能问题。
帮助开发者定位并读取 Code OSS 开发构建日志,快速排查运行与扩展问题。
帮助开发者排查 VS Code 遥测中的未处理错误并定位根因。
自动启动并操控 VS Code Insiders 与 Copilot Chat,完成界面测试、聊天交互和截图。
自动驱动 VS Code 性能与内存排查,生成可复现分析结果与对比证据。
帮助用户在本地启动 vscode.dev 并测试 VS Code 工作台与 Agents 窗口。
帮助开发者在 VS Code 仓库中运行、筛选并调试单元测试。
使用 Playwright 测试本地 Web 应用、排查界面问题并采集截图与日志
将 VSCode 与 MCP 连接,让 AI 实时获取诊断、符号与代码导航信息