-
Notifications
You must be signed in to change notification settings - Fork 5
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
Fix: auto-suggesting a symbol other than the valid, currently-typed prefix #265
Comments
@benhutchison Thank you for reporting! Let me clarify the problem, so
Am I right? |
One other thing to note, part of this behavior is due to VS Code filtering. We've seen it a lot before where the order that Metals returns something isn't respected in in VS Code whereas it is respected in other clients. For example testing this out in object Foo:
val m = "m"
val M = "M"
@main def foo =
Foo.@@ When I trigger a completion on |
Behavior differs:
The relevant lsp trace for incorrect case was massive so wont include here. It included all fields on the object, |
I think the issue here is that completions are later filtered by VS Code and from what I observed after typing |
Is your feature request related to a problem? Please describe.
Quick Metals "bug" report. Concerns the auto-suggest proposals. In the example screenshot, auto-suggest is ON, there is a field on ts called
![image](https://user-images.githubusercontent.com/95460/160680768-5e8d9d61-cbb5-4747-8246-44ba7df5334d.png)
m
, I have typedm
and yet the editor is prompting forM
, another different field.Net effect is that I have to do extra work just to select the field that's already fully typed out.
Describe the solution you'd like
If there is a field that exact matches the typed prefix, it should always be most preferred suggestion
Describe alternatives you've considered
leave as is
Additional contex
No response
Search terms
autocomplete
The text was updated successfully, but these errors were encountered: