Files
ai-diff-preview/scripts/build-package.bat
T
Gmarker689 a7c992a804 refactor: 重构为 Webview Review 面板架构
- 移除旧的 DiffEngine、InlineDecorator、CodeLensProvider 等模块
- 新增 ChangeSetManager 统一管理代码变更快照
- 新增 reviewPanel.ts 实现双栏 Review Webview 面板
- 简化 hookHandler.ts,直接通过 ChangeSet 收集变更
- 简化 extension.ts 入口,移除冗余模块导入
- 更新 types.ts,精简 ChangeSet 和 ChangeEntry 类型定义
- package.json 添加 onStartupFinished 激活事件
2026-06-18 00:09:56 +08:00

34 lines
655 B
Batchfile

@echo off
echo ========================================
echo AI Code Diff Preview - 构建打包脚本
echo ========================================
echo.
echo [1/4] 清理旧文件...
if exist dist rmdir /s /q dist
if exist *.vsix del *.vsix
echo.
echo [2/4] 安装依赖...
call npm install
echo.
echo [3/4] 编译构建...
call npm run build
echo.
echo [4/4] 打包 VSIX...
call npx vsce package
echo.
echo ========================================
echo 构建完成!
echo.
echo 生成的文件:
dir /b *.vsix
echo.
echo 安装方法:
echo code --install-extension ai-diff-preview-0.1.0.vsix
echo ========================================
pause