Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FEAT: prioritize exact matches on param name for intellisense tab-completions #6630

Open
NickCrews opened this issue Nov 1, 2024 · 0 comments
Assignees
Labels
needs repro Issue has not been reproduced yet

Comments

@NickCrews
Copy link

Given:

  • 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.

Image

@karthiknadig karthiknadig transferred this issue from microsoft/vscode-python Nov 4, 2024
@github-actions github-actions bot added the needs repro Issue has not been reproduced yet label Nov 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs repro Issue has not been reproduced yet
Projects
None yet
Development

No branches or pull requests

2 participants