Reference
Configuration
Set these in your workspace .vscode/settings.json (or user settings).
| Setting | Default | Description |
|---|---|---|
| snWidgetKit.workspaceFolder | "widgets" | Folder where widgets are stored locally |
| snWidgetKit.autoSync | false | Automatically push changes on save |
| snWidgetKit.autoSyncDebounceMs | 500 | Auto-sync debounce (ms) |
| snWidgetKit.confirmOnConflict | true | Ask for confirmation when the remote changed since pull |
| snWidgetKit.warnOnDefaultUpdateSet | true | Warn when pushing to the Default Update Set |
| snWidgetKit.enforceWorkingContext | true | Block push if Update Set = Default or scope differs. false = warn only |
| snWidgetKit.previewPort | 7890 | Local preview/hot-reload server port |
| snWidgetKit.hotReloadOnPush | true | Broadcast hot-reload to connected portal sessions after push |
| snWidgetKit.perfAlertThresholdMs | 1000 | Warn (SLOW badge + toast) when a server.js render exceeds this many ms. 0 disables |
| snWidgetKit.includePortalScripts | false | Include portal JS (sp-angular) in the preview. Opt-in; may conflict |
| snWidgetKit.offlineMode | false | Develop without the instance: use fixtures.json / demo-data.json instead of live data |
| snWidgetKit.highFidelityArtifacts | false | Fetch and inject the widget's Angular ng-templates, providers and dependency CSS into the preview |
| snWidgetKit.highFidelityServer | false | Run 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.manifestTtlMinutes | 5 | TTL for the portal CSS/theme cache. 0 disables the cache |
| snWidgetKit.instanceTypesSyncIntervalMinutes | 15 | Fallback 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.