javavscode icon indicating copy to clipboard operation
javavscode copied to clipboard

Given an exact variable match, autocompletion with dot should always use that

Open anthonyvdotbe opened this issue 1 year ago • 1 comments

Consider the following:

image

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
    }

}

anthonyvdotbe avatar Oct 28 '23 13:10 anthonyvdotbe

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

anthonyvdotbe avatar Nov 07 '23 07:11 anthonyvdotbe

Fix available in latest version of the extension. So, closing this issue for now. If you still face this issue feel free to reopen.

Achal1607 avatar Jul 11 '24 11:07 Achal1607