You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: add shell integration-based terminal output capture for remote environments
When the extension host runs on Windows with a remote workspace (SSH, WSL,
Dev Container), childProcess.spawn executes locally instead of on the remote.
The existing fallback used ide.runCommand (sendText) which had no output
capture, returning a hardcoded "Command failed" status.
This adds a new runCommandWithOutput IDE method that uses VS Code's Shell
Integration API (1.93+) to execute commands on remote terminals with full
output capture. The method creates an invisible terminal, waits for shell
integration to activate, executes via shellIntegration.executeCommand(),
and reads output via the async iterable read() API. ANSI color codes are
preserved for rendering by the UnifiedTerminal component; only VS Code's
internal OSC 633 shell integration markers are stripped.
Falls back gracefully to sendText when shell integration is unavailable.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
0 commit comments