Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Rome Works LiteNew to Visual Studio Code? Get it now.
Rome Works Lite

Rome Works Lite

screetBloom

|
2,228 installs
| (0) | Free
更快的 Rome Works
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Rome Works Lite

编辑器场景下的轻量 Rome Works,为纯前端 IDE 设计

前置准备

安装依赖即可,postinstall脚本会自动完成剩余操作

pnpm install

启动开发

pnpm run watch # 检测构建
pnpm run dev # 启动调试服务

目录说明

src
├── extension.ts # 入口文件
├── bootstrap # 基座
├── constants # 需跨目录使用的常量 (例如同时在 模块 和 服务 中使用)
│   ├── cursor-stats # cursor-stats模块和服务使用的常量
│   ├── global # 全局常量
│   ├── process-ai-invoke # 处理AI调用相关常量
│   ├── web-lint # modules/weblint 和 services/*/weblint 都会用到的常量
│   └── index.ts
├── types # 需跨目录使用的类型定义
│   ├── ai-invoke.ts
│   ├── bootstrap.ts
│   ├── cursor-stats.ts
│   ├── index.ts
│   └── web-lint.ts
├── extend # Web IDE 在浏览器运行时的扩展,主要用来运行 WebContainer
├── libraries # 公共逻辑 (例如 Horn 配置获取)
├── modules # 模块,一般为和 IDE 交互的逻辑
│   ├── index.ts # 模块注册
│   ├── cursor-stats # 光标统计模块
│   ├── demo-helper # 示例帮助模块
│   ├── process-ai-invoke # 处理AI调用模块
│   ├── ts-auto-fix # TypeScript自动修复模块
│   └── web-lint # Web代码检查模块
└── services # 服务,一般为和运行环境交互的逻辑,例如文件系统 (桌面服务对应 VSCode,Web 服务对应 Web IDE)
    ├── desktop # 桌面服务
    │   ├── index.ts # 桌面服务注册
    │   ├── cursor-stats # 光标统计桌面服务
    │   ├── process-ai-invoke # 处理AI调用桌面服务
    │   └── web-lint # Web代码检查桌面服务
    └── web # Web 服务
        ├── index.ts # Web 服务注册
        └── web-lint # Web代码检查Web服务

创建新模块 / 服务

使用 pnpm new 命令,会自动生成新模块 / 服务,并自动更新 src/modules/index.ts 和 src/services/index.ts 文件

➜  rome-works-lite ✗ pnpm new

✔ What type of component do you want to create? Service
✔ What type of service do you want to create? Both Desktop & Web
✔ Enter the name: horn-config

✨ Created successfully! Happy coding! 🚀

打包发布

执行下列指令,产物将保存在 dist 目录下

# 打包所有插件
pnpm run package:all

# --- 如有需要,也可以分别打包 ---

# 打包 VSCode 插件
pnpm run package:vscode

# 打包 OpenSumi Web IDE 插件
pnpm run package:sumi
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft