R: Autocompletion appends parentheses when there are already parentheses
Currently in Positron, when typing function in front of parentheses, accepting autocompletion will add another extra parentheses.
This isn't consistent with RStudio, where no additional parentheses are added.
This is an issue for me because I am used to sometimes type the parentheses first then the function name, for example when I want to change the function, or add another layer outside without using pipe.
Version details
Positron Version: 2024.08.0 (Universal) build 31 Code - OSS Version: 1.91.0 Commit: 7ee0596b81d578059e63c9af7c535c6b6040b947 Date: 2024-08-10T14:49:10.180Z Electron: 29.4.0 Chromium: 122.0.6261.156 Node.js: 20.9.0 V8: 12.2.281.27-electron.0 OS: Darwin arm64 23.6.0
I was sure we already had an issue for this, but I can't find it! Let's track this here then (it's been on our minds too).
Related to #2338 in that it is about adding parentheses when we don't want any.
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 autocompletion does not append parenthesis if they already exist. Closing as resolved.
Link(s) to test cases run or created:
n/a