frontend
VS Code Extension with a Bundled Daemon
VS Code Extension with a Bundled Daemon
Webview:
acquireVsCodeApi()may be called once.useRef(new Client())evaluates its argument every render and blanked the panel. Initialise lazily and cache the handle.- Blob downloads don't work. Use host dialogs through messages.
- Hold a navigation request until the webview says it has started.
- An end-to-end test must wait for a message the app sends on mount. "A tab exists" passes on a blank panel.
- Unset
ELECTRON_RUN_AS_NODEwhen launching a test VS Code from inside VS Code.
Native service:
- Ship per platform under
bin/<platform>-<arch>/; publish per-platform packages, optionally one universal package. - Install into versioned global storage, check the executable bit, handle the spawn
errorevent. - Offer to restart an older running service after an update.
- Run on the UI side (
extensionKind: ["ui"]) so remote windows talk to the local machine. - Executable path settings must be machine-scoped, or an untrusted folder can choose what runs.
- A user-supplied socket path is connected to, never started or stopped.
Related: VS-Code-Marketplace-Publishing. Used in: Ferry