Commit 4f30de7
authored
feat: Code Sync for VS Code extension with cartridge management (#382)
* feat: add Code Sync feature to VS Code extension with cartridge management
Add file watcher with automatic upload, deploy command, cartridge tree view,
and code version management to the VS Code extension. Extract reusable
uploadFiles and downloadSingleCartridge functions in the SDK for efficient
per-file and per-cartridge operations.
SDK changes:
- Extract batch upload pipeline into uploadFiles() from watchCartridges()
- Add downloadSingleCartridge() for per-cartridge download (ZIPs only the
target cartridge instead of entire code version)
- downloadCartridges() now uses per-cartridge download when include filter set
- Add autoUpload config field (dw.json: "autoUpload" / "auto-upload")
VS Code extension:
- CodeSyncManager: file watcher using VS Code FileSystemWatcher with debounced
batch upload, status bar toggle, per-instance state persistence
- Deploy command with cartridge selection and activate/reload options
- Cartridge tree view with discovered cartridges and context menu actions:
upload, download from instance, add/remove site cartridge path
- Code version management: list, create, activate, reload, delete
- Auto-start based on workspaceState or dw.json autoUpload setting
- Auto-detect new cartridges via .project file watcher
- Move API Browser to separate SCAPI sidebar
* fix: prettier formatting in upload-files.ts1 parent 70ccffb commit 4f30de7
18 files changed
Lines changed: 1937 additions & 224 deletions
File tree
- .changeset
- packages
- b2c-tooling-sdk
- src
- config
- operations/code
- test/operations/code
- b2c-vs-extension
- src
- code-sync
- logs
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
| 78 | + | |
| 79 | + | |
78 | 80 | | |
79 | 81 | | |
80 | 82 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
156 | 156 | | |
157 | 157 | | |
158 | 158 | | |
| 159 | + | |
159 | 160 | | |
160 | 161 | | |
161 | 162 | | |
| |||
274 | 275 | | |
275 | 276 | | |
276 | 277 | | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
277 | 281 | | |
278 | 282 | | |
279 | 283 | | |
| |||
420 | 424 | | |
421 | 425 | | |
422 | 426 | | |
| 427 | + | |
423 | 428 | | |
424 | 429 | | |
425 | 430 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
92 | 96 | | |
93 | 97 | | |
94 | 98 | | |
| |||
0 commit comments