VS Code extension: native sandbox/log features, user-facing settings#208
Merged
VS Code extension: native sandbox/log features, user-facing settings#208
Conversation
Replace ODS sandbox management and storefront-next-cartridge webviews with native TreeView + commands pattern. Add log tailing feature. Add contributes.configuration settings for feature toggles, log level, and sandbox polling interval. Add realm config support to SDK. - Sandbox Explorer: native TreeView with realm/sandbox hierarchy, lifecycle commands (create, delete, start, stop, restart), polling - Log Tailing: start/stop commands streaming to output channel - Settings (b2c-dx.*): feature enable/disable, logLevel (replaces hardcoded trace), sandbox.pollingInterval - SDK: realm field in dw.json / NormalizedConfig - Removed: ods-management.html, storefront-next-cartridge.html
Tree-view commands that require a node argument (sandbox lifecycle, webdav file ops, content export/remove) silently no-op when invoked from F1. Add commandPalette when:false entries to hide them.
Collaborator
Author
|
bypassing; will demo WIP |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Continues the VS Code extension's migration from webview panels to native VS Code patterns, and adds the first user-facing
contributes.configurationsettings.Native TreeView conversions & new features
ods-management.htmlwebview with a native TreeView showing realm → sandbox hierarchy. Includes lifecycle commands (create, delete, start, stop, restart, view details, open BM) with state-aware icons and automatic polling during transitions.b2c-dx.logs.startTail/stopTailcommands.dw.json.b2c-dx.instance.inspectopens the resolved config as a read-only JSON document (with secrets redacted). Auto-updates whendw.jsonchanges.ods-management.html,storefront-next-cartridge.htmldeleted; functionality replaced by native commands/views.User-facing settings (
contributes.configuration)All under the
b2c-dxnamespace (Settings UI → Extensions → B2C DX):b2c-dx.features.sandboxExplorertrueb2c-dx.features.webdavBrowsertrueb2c-dx.features.contentLibrariestrueb2c-dx.features.logTailingtrueb2c-dx.logLevelinfotrace–silent); replaces hardcodedtraceb2c-dx.sandbox.pollingInterval10Feature toggles conditionally skip
register*()calls at activation. Log level reacts toonDidChangeConfigurationfor live updates.SDK changes
realmfield toDwJsonConfig,NormalizedConfig, and config mapping/merge so sandbox operations can read a default realm fromdw.json.Test plan
pnpm --filter b2c-vs-extension run typecheck:agentpassespnpm --filter b2c-vs-extension run lint:agentpassesb2c-dx.features.sandboxExplorertofalse, reload → Sandbox Explorer view not registeredb2c-dx.logLeveltowarn→ output channel stops showing trace/debug/infob2c-dx.instance.inspect→ opens redacted config JSON in editor