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
There have been repeated requests to attach vscode-R to an R session running on a different host from the VS Code extension host, particularly in HPC environments where VS Code runs on a login node while R runs on a scheduler-allocated compute node.
Historically this was difficult because the session watcher depended on shared files, file watchers, and local process IDs.
With the new sess architecture, communication is now bidirectional JSON-RPC over a stream socket.
This should make cross-host sessions feasible in the future, for example through SSH socket forwarding or an additional TCP transport, without changing the higher-level session protocol.
I don't think vscode-R needs to manage SSH, Slurm, or other schedulers itself.
The useful boundary would be simply allowing sess to connect when the R process and the extension host are on different machines.
#1764 establishes useful prerequisites: stable session IDs, explicit endpoint/discovery metadata, and the public session API. It still uses local Unix sockets / Windows named pipes and does not establish supported cross-host attachment.
Cross-host identity/discovery and forwarding or another transport still need implementation and validation, including the case where the extension host runs on a login node and R runs on a compute node. Persistent Interactive sessions on the same remote host do not cover that separation.
Keeping this open for the cross-host functionality.
Activity
.vsc.attach()function to connect by TCP to VSCode - supporting remote R sessions #1359 as a duplicate of this issuefeat(sess)!: stabilize attach identity and endpoint contract (#1764)
renkun-ken commentedon Oct 6, 2026
#1764 establishes useful prerequisites: stable session IDs, explicit endpoint/discovery metadata, and the public session API. It still uses local Unix sockets / Windows named pipes and does not establish supported cross-host attachment.
Cross-host identity/discovery and forwarding or another transport still need implementation and validation, including the case where the extension host runs on a login node and R runs on a compute node. Persistent Interactive sessions on the same remote host do not cover that separation.
Keeping this open for the cross-host functionality.