-
Notifications
You must be signed in to change notification settings - Fork 30k
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
showInlineCompletions and TabCompletions don't work well together #125328
Comments
Thanks for reporting this! Yes, this scenario is currently not supported. |
It seems like a simple weight adjustment did the trick. I thought there was some complicated interaction causing problems. |
Doesn't this flip the problem though @hedie? Now tab completion won't work with inline completion? |
Tab completion will not work if an inline completion is visible, that is right. However, if no inline completion is visible, tab completion will work. I think it is fair to give the inline completion precedence, since it is visible and can be canceled with escape (and then tab completion would have precedence). What are your thoughts? |
I think that's fine so long as 2 things happen:
Alternatively, and maybe harder, have the suggest widget pop up in tab completion...because it's my understanding that the suggest widget and ghost text can't be displayed at the same time? |
Don't you get this behavior when enabling quick suggest?
This should work already.
Hmm, you could also disable inline suggestions and trigger them manually (there is a command for that). I'm not a huge fan of making the 1-2 seconds delay default (or even a default when tab completion is on). Though it could make sense to have a setting to set a delay value. |
I wasn't clear there, my bad. I meant that the suggest widget would stay open after you hit tab and then when you hit Tab again it would change the text in the editor and the suggest widget would move the cursor down to the second option, and then tab again would change the text in the editor and move the cursor down to the third option, etc. I thought I saw other editors do this, but I can't seem to get it working that way again so maybe I dreamt it 😆 in any case, ignore that point. |
Testing #124979
Apply these settings:
with this code:
Here's what I see. There's no way to accept an inline completion:
The text was updated successfully, but these errors were encountered: