javavscode
javavscode copied to clipboard
Given an exact variable match, autocompletion with dot should always use that
Consider the following:
When I type a dot at this point, it autocompletes to fooUfo
, which just doesn't make sense to me. I'm literally typing foo.
, because that's exactly what I want. I understand that fooUfo
is higher up the list for some reason, but in cases where there's an exact variable match, that list should be ignored.
class Test {
static void run() {
String foodoo = "";
String foo = "";
Integer fooUfo = 2;
int c = foo
}
}
Just to demonstrate how annoying this is: I'm trying to type if(locale.getLanguage() ...)
:
https://github.com/oracle/javavscode/assets/15714253/cbf2ee08-9e46-4f84-831d-525c730515ee
Fix available in latest version of the extension. So, closing this issue for now. If you still face this issue feel free to reopen.