Skip to content

Pass through console document id from rstudioapi editor context - #1408

Open
juliasilge wants to merge 2 commits into
mainfrom
rstudioapi-console-context-id
Open

Pass through console document id from rstudioapi editor context#1408
juliasilge wants to merge 2 commits into
mainfrom
rstudioapi-console-context-id

Conversation

@juliasilge

@juliasilge juliasilge commented Sep 12, 2026

Copy link
Copy Markdown
Member

This set of PRs makes rstudioapi context aware of the console. The two PRs can merge in either order, because R reads the raw JSON reply instead of the generated struct.

This change adds an optional id field to the editor context from .rs.api.getSourceEditorContext(). rstudioapi::getActiveDocumentContext() calls this function, so it gets the new field too. When the context is the console, the frontend sets id to "#console". Editor contexts do not yet include this field.

Positron Release Notes

New Features

Bug Fixes

  • N/A

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant