Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent Automatic Bracket Insertion for Function Suggestions in debug() Function #6286

Closed
kevinsuryanto opened this issue Feb 11, 2025 · 1 comment

Comments

@kevinsuryanto
Copy link

Description:

When using function suggestions within the debug() function in R code, Positron automatically inserts opening and closing brackets around the suggested function name. For example, typing debug( and selecting a function name like filter results in debug(filter()). However, the desired behavior is to insert the function name without brackets, as in debug(filter). This behavior exists in RStudio.

Steps to Reproduce:

  1. Open a new R file in Positron.
  2. Start typing debug( and select a function name from the suggestion list (e.g., filter).
  3. Observe that the function name is automatically enclosed in brackets.

Expected Behavior:

When selecting a function name from suggestions within the debug() function, it should not automatically insert brackets around the function name.

Additional Context:

This behavior is specific to using function suggestions within the debug() function and affects the workflow by requiring manual removal of the brackets each time.

@juliasilge
Copy link
Contributor

Thanks for this report! 🙌

I believe this is a duplicate of #2338, and I am happy to report that it was fixed in #6273. This fix will be incorporated in the next build we make available at https://github.com/posit-dev/positron/releases (unfortunately not the one published today).

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 26, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants