-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Variable override auto-complete doesn't differenciate between getter and setter #59929
Comments
I added this to the end of the detail field (since the detail on the right is always the URI right now). It looks like this: |
It seems a bit inconsistent that we mark an override suggestion with |
Yeah, that would be another point for #59930. Maybe fixing that here would be fine. @DanTup can you take a look into why is it that auto-complete for |
Yeah, I agree. I wonder if we could add it to the |
btw, I'm not sure if wen ca represent this in the legacy protocol. To do this, we have three strings:
LSP supports all of these ( |
I do agree it makes it a bit harder to scan but I don't think placing it somewhere else would make this coherent with writing Also, on that note, can we move |
I wonder if we should also always put
I originally did it this way because it was how you'd write |
I don't feel strongly either way here but currently we never show |
I'd have to try using it to see what IntelliJ would do with display text that doesn't start with the prefix.
I think not. We don't put the ampersand in when completing the annotation so I think we're fine to not include it when completing the name of the member to be overridden.
I suppose we could include the parameter type in a setter (inside parens), but no, I'd omit the return type. |
Here's how it looks with I've updated the CL at https://dart-review.googlesource.com/c/sdk/+/405007 with this. |
If you have code like:
And you ask for code completion at
^
and continue writingvalue
this is the output:If you ask for something that is not in scope, it'll show on the right side what is the library that will be imported:
Could we use that place for differentiating between getter and setter?
CC @DanTup
The text was updated successfully, but these errors were encountered: