Commit dc7a25a
authored
VS Code extension: native TreeView, content libraries, plugin support, CI (#186)
* Replace WebDAV Browser webview with native TreeView
Replace the 561-line HTML webview (webdav.html) with a VS Code native
TreeDataProvider sidebar. This gives the extension its first Activity Bar
presence and provides collapsible tree browsing, context menus, keyboard
navigation, theming, and accessibility for free.
- Add Activity Bar container "B2C-DX WebDAV" with sidebar tree view
- Lazy-load directory contents via PROPFIND with caching
- Context menu commands: New Folder, Upload, Delete, Download, Open File
- Open files via temp storage with native VS Code editors (syntax
highlighting, image viewer, etc.)
- Welcome view when no B2C instance is configured
- Replace "*" activation event with targeted onView activation
- Remove webdav.html and all inline webview message handling (~240 lines)
* Add FileSystemProvider, New File command, and workspace folder mount
- Add WebDavFileSystemProvider with caching, stat/readDirectory/readFile/
writeFile/createDirectory/delete operations against WebDAV
- Root path handling returns synthetic directory listing of the 9 well-known
B2C Commerce roots (avoids PROPFIND on "/")
- Tree provider delegates to FS provider instead of calling WebDAV directly;
root nodes use standard folder icons via resourceUri
- New File command: prompts for filename, creates empty file, opens in editor
- Mount/Unmount Workspace commands: add/remove b2c-webdav:/ as a VS Code
workspace folder for native Explorer integration
- Context key b2c-dx.webdav.mounted tracks mount state for menu visibility
- Download command available in native Explorer context menu for b2c-webdav files
* Mount individual folders instead of entire WebDAV root
Change "Open as Workspace Folder" to operate on the right-clicked
node (root or directory) rather than mounting b2c-webdav:/ globally.
The workspace folder is named "WebDAV: <path>" for clarity.
Move mount command from view title bar to context menu. Remove
unmountWorkspace command and mounted context key tracking — VS Code's
native "Remove Folder from Workspace" handles unmounting.
* wip content
* Add content library explorer to VS Code extension
- Native tree view for browsing B2C Commerce content libraries (pages,
content assets, components, static assets) in the sidebar
- FileSystemProvider (b2c-content: scheme) for viewing/editing content XML
with round-trip import via site archive jobs
- Export commands: Export, Export without Assets, Export Assets Only
- Import site archive from command palette or explorer context menu (B2C-DX submenu)
- Filter/search within library tree with toggle in title bar
- Click static assets to preview images via WebDAV filesystem
- Show job log in editor on import failure
- Sort content-link children by position element instead of XML document order
* Add VS Code extension CI tests and VSIX release publishing
- Create separate CI workflow for extension tests using xvfb-run
(path-filtered to packages/b2c-vs-extension/**)
- Add tsconfig.test.json and pretest script to compile test files
- Fix self-referencing step condition bug in ci.yml
- Add typecheck to main CI for the extension (catches SDK breakage)
- Add VSIX build, git tagging, and release upload to publish workflow
* wip
* Centralize config resolution in VS Code extension
Replace 7 independent resolveConfigWithPlugins() call sites with a
single B2CExtensionConfig singleton that caches resolved config and
exposes getInstance()/getConfig()/getConfigError()/reset().
- Add dw.json file watcher (RelativePattern + onDidSaveTextDocument)
that auto-resets config and fires onDidReset event
- WebDAV tree subscribes to onDidReset for automatic refresh on
config changes
- Silently handle FileNotFound in tree re-expansion after server switch
- Delete WebDavConfigProvider (fully replaced by B2CExtensionConfig)
* Add changeset for SDK plugin module
* Replace WebDAV Browser webview with native TreeView
Replace the 561-line HTML webview (webdav.html) with a VS Code native
TreeDataProvider sidebar. This gives the extension its first Activity Bar
presence and provides collapsible tree browsing, context menus, keyboard
navigation, theming, and accessibility for free.
- Add Activity Bar container "B2C-DX WebDAV" with sidebar tree view
- Lazy-load directory contents via PROPFIND with caching
- Context menu commands: New Folder, Upload, Delete, Download, Open File
- Open files via temp storage with native VS Code editors (syntax
highlighting, image viewer, etc.)
- Welcome view when no B2C instance is configured
- Replace "*" activation event with targeted onView activation
- Remove webdav.html and all inline webview message handling (~240 lines)
* Add FileSystemProvider, New File command, and workspace folder mount
- Add WebDavFileSystemProvider with caching, stat/readDirectory/readFile/
writeFile/createDirectory/delete operations against WebDAV
- Root path handling returns synthetic directory listing of the 9 well-known
B2C Commerce roots (avoids PROPFIND on "/")
- Tree provider delegates to FS provider instead of calling WebDAV directly;
root nodes use standard folder icons via resourceUri
- New File command: prompts for filename, creates empty file, opens in editor
- Mount/Unmount Workspace commands: add/remove b2c-webdav:/ as a VS Code
workspace folder for native Explorer integration
- Context key b2c-dx.webdav.mounted tracks mount state for menu visibility
- Download command available in native Explorer context menu for b2c-webdav files
* Mount individual folders instead of entire WebDAV root
Change "Open as Workspace Folder" to operate on the right-clicked
node (root or directory) rather than mounting b2c-webdav:/ globally.
The workspace folder is named "WebDAV: <path>" for clarity.
Move mount command from view title bar to context menu. Remove
unmountWorkspace command and mounted context key tracking — VS Code's
native "Remove Folder from Workspace" handles unmounting.
* fix config resolution for content tree
* fix review findings: config reset, writeFile flags, archive stripping, plugin opts
- Refresh content tree on config reset (matching webdav-tree pattern)
- Honour create/overwrite flags in WebDAV writeFile per VS Code contract
- Strip single existing top-level root in ensureArchiveStructure to avoid
double-nesting when re-wrapping site archives
- Add accountManagerHost to PluginHookOptions and resolveOptions
- Use Uri.from instead of Uri.parse for correct special-char handling
- Guard applyMiddleware against duplicate registration
* bug fixing import zip conventions and adding multi-select
* changeset: downgrade sdk-plugin-module to patch1 parent a9db7da commit dc7a25a
36 files changed
Lines changed: 3484 additions & 921 deletions
File tree
- .changeset
- .github/workflows
- packages
- b2c-tooling-sdk
- src
- cli
- config
- operations
- content
- jobs
- plugins
- test
- operations
- content
- jobs
- plugins
- b2c-vs-extension
- media
- src
- content-tree
- webdav-tree
| 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 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
83 | | - | |
| 83 | + | |
84 | 84 | | |
85 | | - | |
| 85 | + | |
86 | 86 | | |
87 | | - | |
88 | | - | |
| 87 | + | |
89 | 88 | | |
90 | 89 | | |
91 | 90 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
153 | 153 | | |
154 | 154 | | |
155 | 155 | | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
156 | 167 | | |
157 | 168 | | |
158 | 169 | | |
| |||
204 | 215 | | |
205 | 216 | | |
206 | 217 | | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
207 | 223 | | |
208 | 224 | | |
209 | 225 | | |
| |||
230 | 246 | | |
231 | 247 | | |
232 | 248 | | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
233 | 255 | | |
234 | 256 | | |
235 | 257 | | |
| |||
279 | 301 | | |
280 | 302 | | |
281 | 303 | | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
282 | 311 | | |
283 | 312 | | |
284 | 313 | | |
| |||
297 | 326 | | |
298 | 327 | | |
299 | 328 | | |
| 329 | + | |
| 330 | + | |
300 | 331 | | |
301 | 332 | | |
302 | 333 | | |
| |||
330 | 361 | | |
331 | 362 | | |
332 | 363 | | |
| 364 | + | |
| 365 | + | |
333 | 366 | | |
334 | 367 | | |
335 | 368 | | |
| |||
339 | 372 | | |
340 | 373 | | |
341 | 374 | | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
342 | 396 | | |
343 | 397 | | |
344 | 398 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
266 | 266 | | |
267 | 267 | | |
268 | 268 | | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
269 | 280 | | |
270 | 281 | | |
271 | 282 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
255 | 255 | | |
256 | 256 | | |
257 | 257 | | |
258 | | - | |
259 | | - | |
260 | | - | |
261 | | - | |
262 | | - | |
263 | | - | |
264 | | - | |
265 | | - | |
266 | | - | |
267 | | - | |
268 | | - | |
269 | | - | |
270 | | - | |
271 | 258 | | |
272 | 259 | | |
273 | 260 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
| |||
221 | 222 | | |
222 | 223 | | |
223 | 224 | | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
224 | 236 | | |
225 | 237 | | |
226 | 238 | | |
| |||
Lines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
121 | | - | |
| 121 | + | |
122 | 122 | | |
123 | 123 | | |
124 | | - | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
125 | 129 | | |
126 | 130 | | |
127 | 131 | | |
| |||
Lines changed: 65 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
53 | 61 | | |
54 | 62 | | |
55 | 63 | | |
| |||
64 | 72 | | |
65 | 73 | | |
66 | 74 | | |
67 | | - | |
68 | | - | |
69 | | - | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
70 | 86 | | |
71 | 87 | | |
72 | 88 | | |
| |||
94 | 110 | | |
95 | 111 | | |
96 | 112 | | |
97 | | - | |
98 | | - | |
99 | | - | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
100 | 126 | | |
101 | | - | |
102 | | - | |
103 | 127 | | |
104 | 128 | | |
105 | 129 | | |
| |||
236 | 260 | | |
237 | 261 | | |
238 | 262 | | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
239 | 296 | | |
240 | 297 | | |
241 | 298 | | |
| |||
0 commit comments