Repository navigation
Open webR session files in VS Code and show the backend and filesystem - #2010
Open
renkun-ken wants to merge 10 commits into
Open
renkun-ken wants to merge 10 commits into
renkun-ken wants to merge 10 commits into
Conversation
This was referenced Nov 28, 2026
… into codex/webr-session-files
…ion-files # Conflicts: # src/web/interactive.ts
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Open session files in VS Code
Use R: Open webR Session File… from the palette or session actions. Read, edit and save files directly against the owning webR generation.
file.edit("/tmp/example.R")opens the corresponding editor, and?meanopens normalized R help as a read-only text document. A stale editor cannot overwrite a file belonging to a restarted session.On desktop,
/projectis the mounted project directory on the R host; paths there open as ordinary workspace URIs. Other paths such as/home/web_userand/tmpbelong to the session. In browser-only VS Code,/workspacecontains explicitly imported files. Session files use the correct execution and language worker when several notebooks are open.The Interactive Sessions tree, notebook kernel button and status bar show the canonical backend name, including webR. The notebook explains its filesystem visibly. Native session identity and existing workspace-file behavior are preserved.
Verification
file.edit(), read-only R help, the desktop host project mapping, browser import/export, and session-specific language completion.Stacked on #2009. Tracks #2003.