SN Widget Kit logoSN Widget Kit
Docs

Reference

Configuration

Set these in your workspace .vscode/settings.json (or user settings).

SettingDefaultDescription
snWidgetKit.workspaceFolder"widgets"Folder where widgets are stored locally
snWidgetKit.autoSyncfalseAutomatically push changes on save
snWidgetKit.autoSyncDebounceMs500Auto-sync debounce (ms)
snWidgetKit.confirmOnConflicttrueAsk for confirmation when the remote changed since pull
snWidgetKit.warnOnDefaultUpdateSettrueWarn when pushing to the Default Update Set
snWidgetKit.enforceWorkingContexttrueBlock push if Update Set = Default or scope differs. false = warn only
snWidgetKit.previewPort7890Local preview/hot-reload server port
snWidgetKit.hotReloadOnPushtrueBroadcast hot-reload to connected portal sessions after push
snWidgetKit.perfAlertThresholdMs1000Warn (SLOW badge + toast) when a server.js render exceeds this many ms. 0 disables
snWidgetKit.includePortalScriptsfalseInclude portal JS (sp-angular) in the preview. Opt-in; may conflict
snWidgetKit.offlineModefalseDevelop without the instance: use fixtures.json / demo-data.json instead of live data
snWidgetKit.highFidelityArtifactsfalseFetch and inject the widget's Angular ng-templates, providers and dependency CSS into the preview
snWidgetKit.highFidelityServerfalseRun server.js on the instance (Scripted REST) for 100% server-side fidelity; falls back to the local sandbox
snWidgetKit.remoteEvalPath""Path of the remote-eval Scripted REST resource (e.g. /api/x_scope/snwk_preview/eval). Empty disables it
snWidgetKit.manifestTtlMinutes5TTL for the portal CSS/theme cache. 0 disables the cache
snWidgetKit.instanceTypesSyncIntervalMinutes15Fallback interval for the periodic Script Include check. 0 disables it
Also worth knowing
snWidgetKit.oauthRedirectPort sets the loopback port used in your OAuth Redirect URL — it must match the value registered on the instance byte-for-byte. See Authentication.