I expect the code completion to list the most relevant completion first. This doesn't happen in the following case:
f <- function() {
c <- 'local'
c
}
The c from base is suggested first, even though there is a local variable of the same name.
Consequently, when I press Enter, parentheses are inserted even though a string is not callable.
More generally, r4intellij should prefer local variables over variables further away, since these are typically accessed more frequently.
I expect the code completion to list the most relevant completion first. This doesn't happen in the following case:
The
c
from base is suggested first, even though there is a local variable of the same name. Consequently, when I press Enter, parentheses are inserted even though a string is not callable.More generally, r4intellij should prefer local variables over variables further away, since these are typically accessed more frequently.