Skip to content

Conversation

@lionel-
Copy link
Contributor

@lionel- lionel- commented Dec 8, 2025

Progress towards posit-dev/positron#1766
Ark side of posit-dev/positron#10815
Branched on #974

This adds a #line directive to parsed code to map srcrefs to the file and line origin.
The code is also mapped to the correct starting column by padding the code with leading whitespace.

With these changes, srcrefs point to the editor from which the code was executed:

Screen.Recording.2025-12-05.at.17.18.53.mov

The #line directive and padding whitespace are added via Rowan (#974). They could also just be prepended to the code textually, but we'll have to use Rowan for breakpoint injection so I thought we'd get our feet wet with it.

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.

2 participants