You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a function def foo(haystack: str, needle: str)
at a call site I begin typing foo(haystack=bar, needle=nee
In scope are several variables:
needed_columns_h
needed_columns_n
needle
Then intellisense suggests all three of these to me. But it sorts them alphabetically. So this leads to it suggesting needed_columns_h as the first choice. I would want needle to be the first choice.
I want to avoid the whole can of worms for more complex rankings of "which in-scope variable is the most likely to be correct", so I think even if it only prioritizes exact matches, that would be great. Slightly more complex, and probably still a better experience would be if it ranked them by eg damerau-levenshtein distance, and then broke ties with alphabetical sorting.
The text was updated successfully, but these errors were encountered:
Given:
def foo(haystack: str, needle: str)
foo(haystack=bar, needle=nee
Then intellisense suggests all three of these to me. But it sorts them alphabetically. So this leads to it suggesting
needed_columns_h
as the first choice. I would wantneedle
to be the first choice.I want to avoid the whole can of worms for more complex rankings of "which in-scope variable is the most likely to be correct", so I think even if it only prioritizes exact matches, that would be great. Slightly more complex, and probably still a better experience would be if it ranked them by eg damerau-levenshtein distance, and then broke ties with alphabetical sorting.
The text was updated successfully, but these errors were encountered: