Skip to content

Autocomplete suggestion order does not take scope into account #4922

@chinedufn

Description

@chinedufn

I couldn't find a related issue for this, hopefully I'm not opening a dupe.

In the below screenshot I would expect the model_matrix to be suggested before model_matrices when I'm auto-completing inside of the for loop.

image

And in general, when I'm inside of a loop / closure / etc I'd expect the arguments to be considered more relevant than anything outside of the loop / closure / etc scope.


On the nice side though after my first completion it starts highlighting model_matrix (even though it's still lower in the list) so this only happens once per variable (which can be inconvenient but not the end of the world).

Thanks !!

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-completionautocompletionE-hardS-actionableSomeone could pick this issue up and work on it right now

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions