arch-vscode

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese
arch-vscode is a VSCode extension starter (based on antfu/starter-vscode) that uses reactive-vscode for reactive APIs and composables, tsdown for a single CJS bundle, and vscode-ext-gen for type-safe contributes metadata. It provides a minimal, opinionated setup: defineExtension entry, defineConfig/defineLogger, Extension Host debugging, and vsce/vsxpub for packaging and publishing.
The skill is based on starter-vscode (arch-vscode source), generated at 2026-01-30.
Recommended practices:
  • Keep contributes and generated meta in sync via
    pnpm update
    (or Run on Save)
  • Use reactive-vscode composables for state and disposables; use CJS build with external
    vscode
  • Prefer
    onCommand
    activation when possible
arch-vscode是一个VSCode扩展启动模板(基于antfu/starter-vscode),它使用reactive-vscode提供响应式API和组合式函数,tsdown生成单一CJS捆绑包,vscode-ext-gen提供类型安全的contributes元数据。它提供了一个极简且带有明确约定的配置:defineExtension入口、defineConfig/defineLogger、扩展宿主调试,以及用于打包和发布的vsce/vsxpub。
本技能基于starter-vscode(arch-vscode源码)生成,生成时间为2026年1月30日。
推荐实践:
  • 通过
    pnpm update
    (或保存时自动运行)保持contributes与生成的元数据同步
  • 使用reactive-vscode组合式函数管理状态和可释放资源;使用带有外部
    vscode
    依赖的CJS构建
  • 尽可能优先使用
    onCommand
    激活方式

Core References

核心参考资料

TopicDescriptionReference
OverviewProject purpose, structure, when to usecore-overview
Extension EntrydefineExtension, activate, deactivatecore-extension-entry
ConfigdefineConfig, generated scoped configcore-config
LoggingdefineLogger, displayNamecore-logging
tsdown BuildCJS, external vscode, build:prepare hookcore-tsdown-build
Scriptsbuild, dev, update, release, ext:package, ext:publishcore-scripts
Contributescommands, configuration, activationEventscore-contributes
Developmentlaunch.json, tasks.json, Extension Hostcore-development
CIGitHub Actions workflow — lint, typecheck, build, testcore-ci
主题描述参考链接
概述项目用途、结构、适用场景core-overview
扩展入口defineExtension、激活、停用core-extension-entry
配置defineConfig、生成的作用域配置core-config
日志defineLogger、显示名称core-logging
tsdown构建CJS、外部vscode依赖、build:prepare钩子core-tsdown-build
脚本build、dev、update、release、ext:package、ext:publishcore-scripts
Contributes命令、配置、激活事件core-contributes
开发launch.json、tasks.json、扩展宿主core-development
CIGitHub Actions工作流 — 代码检查、类型校验、构建、测试core-ci

Best Practices

最佳实践

TopicDescriptionReference
VSCode Extensionentry, contributes, meta, activation, publishbest-practices-vscode-ext
主题描述参考链接
VSCode扩展入口、contributes、元数据、激活、发布best-practices-vscode-ext