-
Notifications
You must be signed in to change notification settings - Fork 30.4k
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
AutoIndent clears autocompletion buffer, 'end' becomes 'def' in Ruby #29210
Comments
@iccub did you run into this issue still if you run without any extension? |
Sorry for late reply, I'm in eu timezone It's the same without extensions too, I reinstalled clean version to be sure |
I have the same issue in |
very annoying little issue. still going on. |
Still going on for 1.18.1. Any quick fix? |
Would also love to see a fix for this. |
not for me... |
I am working on a rails project, is that behavior probably coming from that context? |
How would I be able to tell from an animated gif? |
just providing more info. My understanding is that autocompletion adds suggestions from keywords coming from the file you are working on. A possible solution could be to disable it for keywords such as |
To be honest, you are saying I see this too and you are attaching a similar animated gif. Yes, that's more info but doesn't help me because I still cannot reproduce this. Please follow this guide: https://github.com/Microsoft/vscode/wiki/Submitting-Bugs-and-Suggestions#writing-good-bug-reports-and-feature-requests, esp. the section of reproducible steps and the code snippet. Please put yourself into my shoes for a second. Folks make me follow nervous gifs and make me type that into the editor (did people forget about copy&paste?!?). It doesn't repo for me, folks say it reproduces so the truth is that the crucial piece of information is still missing. Unfortunately I don't have time for some exploratory investigation but I do have many other, more precise, issues to work on. So guess what happens? I work on other things. So, please test this for once with latest insiders, then share your sample (not a gif nor an image, those are just for decoration), then write down precise steps that leave no room for interpretation which I can follow. A good validation is to test those steps on a different workspace, with different files and/or settings because I don't have your workspace (unless you can share it with me). Thanks for helping out. |
I was having the same issue as the others above and I found a fix by installing "vscode-endwise" extension. Which will auto provide an end when one is needed. |
I was having the same issue, and was able to fix it by installing the rcodetools gem. |
@jrieken I have reproduced this on an out-of-the-box installation of the latest VS Code Insiders (Version 1.21.0-insider)
|
So, your expectation is that outdenting cancels suggest, right? @rebornix Does the editor emit a special change event or a special cursor change reason for that? |
Thanks @pmossman. I have pushed a change that cancels a suggest session when the start of the to be completed word shifts left. Fingers crossed that this doesn't break other, yet unknown, usages... |
GIF for better explanation:
Steps to Reproduce:
After 'end' keyword is finished, indentation happens and suddenly autocompletion changes from 'end' to 'def' or other suggestion. Then, pressing enter makes 'endef', if you want to leave 'end' you need to press esc, which isn't too ergonomic.
When cursor is on proper indentation though, 'end' autocomplete seem to work just fine
Other keywords like 'else', 'rescue' behave properly
This bug didn't occur in vscode 1.13.1.
Related issue: #2272
The text was updated successfully, but these errors were encountered: