-
Notifications
You must be signed in to change notification settings - Fork 676
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
Error in autocompletion with strings starting with an uppercase letter #4063
Comments
Looking into this. |
This is because the completion does not handle correctly the case when completion keeps a bit of the original text. It works with This will skip this condition and instead use the one the is more complicated, that allows overwriting the existing code, but that path does not support this case correctly. I was able to naively fix it by just taking the start of the typedText and prepending it to the proposed change. But this seems like oversimplifying the problem. |
Issue Type: Bug
When overriding a protected void method named OnEnable, if I autocomplete with tab or return, the resulting code is as such:
protected override voidnEnable() { basOnEnable(); }
If I autocomplete "onEnable" (first o is lower case), the result is correct. This happens with any string that starts with an uppercase letter. I've tried "Awake", "OnDisable" etc.
Extension version: 1.23.2
VS Code version: Code 1.49.0 (e790b931385d72cf5669fcefc51cdf65990efa5d, 2020-09-10T13:22:08.892Z)
OS version: Windows_NT x64 10.0.18362
The text was updated successfully, but these errors were encountered: