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

Strange flipping of ordering of autocompletions #14597

Open
DavisVaughan opened this issue Apr 26, 2024 · 3 comments
Open

Strange flipping of ordering of autocompletions #14597

DavisVaughan opened this issue Apr 26, 2024 · 3 comments
Labels
autocompletion Issues relating to autocomplete and autocompletion bug

Comments

@DavisVaughan
Copy link

Run:

x <- list(ab = 1, abc = 2)

Type: x$ab and watch the suggested autocompletion flip from ab to abc even though ab is an exact match, feels weird to me and @kevinushey

Screen.Recording.2024-04-26.at.2.07.51.PM.mov
@DavisVaughan DavisVaughan added bug new New incoming issues, ready for initial review. labels Apr 26, 2024
@kevinushey kevinushey added this to the Cranberry Hibiscus milestone Apr 26, 2024
@ronblum ronblum added autocompletion Issues relating to autocomplete and autocompletion and removed new New incoming issues, ready for initial review. labels Apr 29, 2024
@LuisLauM
Copy link

LuisLauM commented May 6, 2024

The same is true for function arguments.

2024-05-06.15-49-10.mp4

@kevinushey
Copy link
Contributor

@LuisLauM unless I'm misunderstanding, I think you're describing a different issue? Note that RStudio defaults to showing parameters in the same order as they're declared in the underlying function. In addition, if you have Copilot integration enabled, RStudio will show the completion list above the cursor position (instead of below) to avoid obscuring ghost text generated by Copilot.

@LuisLauM
Copy link

LuisLauM commented May 7, 2024

@LuisLauM unless I'm misunderstanding, I think you're describing a different issue? Note that RStudio defaults to showing parameters in the same order as they're declared in the underlying function. In addition, if you have Copilot integration enabled, RStudio will show the completion list above the cursor position (instead of below) to avoid obscuring ghost text generated by Copilot.

Indeed. I have recently started using Copilot and I did not know that the order of the completions changes because of that. My mistake, my apology.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
autocompletion Issues relating to autocomplete and autocompletion bug
Projects
None yet
Development

No branches or pull requests

4 participants