Skip to main content

Module ExtensionHost

Module ExtensionHost 

Source
Expand description

ExtensionHost atoms - VS Code extension-host lifecycle handlers.

Starter: extensionHostStarter:* channel (create/start/kill/exit/wait). DebugService: extensionhostdebugservice:* channel (reload/close).

Modules§

DebugServiceClose
Wire method: extensionhostdebugservice:close. Emits sky://exthost/debug-close so the Sky bridge can react.
DebugServiceReload
Wire method: extensionhostdebugservice:reload. Emits sky://exthost/debug-reload so Wind can tear down caches before a fresh Cocoon spawn.
StarterCreate
Wire method: extensionHostStarter:createExtensionHost. Allocates a stub extension-host ID for VS Code’s starter protocol.
StarterGetExitInfo
Wire method: extensionHostStarter:getExitInfo. Returns stub exit-info shape - Cocoon runs while Mountain is alive.
StarterKill
Wire method: extensionHostStarter:kill. Acknowledged no-op - Cocoon lifecycle is managed by Mountain directly.
StarterStart
Wire method: extensionHostStarter:start. Returns Cocoon’s real PID so debuggers attach to the correct Node.js process. Falls back to Mountain’s PID only if Cocoon has not spawned yet.
StarterWaitForExit
Wire method: extensionHostStarter:waitForExit. Resolves when the extension host exits. Returns stub exit-info so callers do not hang - Cocoon runs indefinitely while Mountain is alive.