-
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
Improve auto-complete for override #59930
Comments
Good idea. If possible, please also take into account what IntelliJ would do, and if any changes are required there too. |
The "problem" here is that our code completion is based on the semantics of the code rather than the lexical qualities of the code, but the filtering, as you noted, is based on the lexical qualities. When you complete after But when you complete after We could, potentially, special case override by checking whether the identifier starts with As a work around, I'll note that if you start typing the name of the inherited member (without the |
It doesn't apparently, only if you continue writing (removing/adding characters - second recording): 20250117_155132.mp420250117_155641.mp4About IntelliJ, it does have the same behaviour I mentioned above as vscode. But I can't seem to enable the same auto-complete for overriding when writing down the member name: 20250117_155549.mp4So it seems that at least right now, for IntelliJ users this |
I think special casing (in DAS, VS Code, and IntelliJ) |
That sounds like a bug.
That also sounds like a bug.
What's special cased, iirc, is the Personally, I'd much rather see us support |
If that is at all possible I agree it'd be better. Should I file other issues for the above or can we use this to track that work too? |
I think we can use this issue for all of the 'override' related bugs. If it gets too confusing we can try out the new sub-issue feature. |
If you type
@override
and ask for auto-completion, this is the output sample:When you continue writing
value
, VS Code filters it client-side:But if you close that auto-complete and come back, these are the outputs:
override
and beforevalue
:I'd like to request that the two last examples work the same as the second image.
CC @DanTup
The text was updated successfully, but these errors were encountered: