positron
positron copied to clipboard
Ark: Completions should be sensitive to the text on the RHS of the cursor
From https://github.com/posit-dev/positron-beta/discussions/47
I think that's annoying enough, and probably not too hard to fix, we'd want to add that to public beta?
Is this a completions issue that should get added to https://github.com/posit-dev/positron/issues/1603?
I've just added it
Relatedly, @hadley notes:
can completions use text to the right of the cursor as well as text to the left? i.e. I type
build_articles()which doesn’t work because I haven’t loaded pkgdown. So I press up, then cmd + left arrow and typepkgdown::— that then autocompletes topkgdown::as_pkgdown()build_articles()
Is this related to this? Or should I open a new issue.
If I attempt to complete in this state (to the left of brackets
and I accept the completion suggestion.
This gets inserted
Also,I can't see help text for parameters on hovering
i.e. try to see the docs for the path argument here.
Also, when pressing F1 at that location, I get the info message <No R help available at this location>
We are tracking the extra parentheses being added here: https://github.com/posit-dev/positron/issues/4441
I'm not sure we do have anything about the behavior of F1 inside parentheses, so that would be a new issue but I do notice that RStudio also doesn't bring up Help in that situation.
Can be verified once .ps.ark.version() in R Console reports that ark is at 0.1.193 or above.
Verified Fixed
Positron Version(s) : 2025.07.0-187 OS Version(s) : MacOS
Test scenario(s)
Confirmed that autocompletions are sensitive to the text on the right and extra parentheses no longer appear.
Link(s) to test cases run or created:
n/a