-
Notifications
You must be signed in to change notification settings - Fork 29.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
Use editor.suggest.preview without quick suggestions #126375
Comments
(Experimental duplicate detection) |
Support for tabCompletion is tracked in #125328! |
@hediet What I mean is be able to see previews without quick suggestions, because if I disable them I cannot see previews. I can see them only with quick suggestions enabled. It would be very amazing, because finally in this case I could totally disable quick suggestions, especially in code-bases where I know things 🙂 |
This also agrees with my vision on how tabCompletion: on should work with editor.suggest.preview! |
@hediet Amazing news! |
After having a closer look at the problem described in #125328, I think this issue really is a different feature request. I will reopen it to track it separately. Unfortunately, if the suggest widget is hidden, completion items are not queried anymore (they are queried on demand when you press "tab" if tab completions are turned on). |
@hediet Copilot can do this with Basically what I expect is to see inline suggest with P.S. Please tell me what should I change to at least compile VS Code by myself to have this functionality. |
Unfortunately, this is not trivial at all. You need a completion session to know what items there are to suggest. |
@hediet Yeah I understand that and I now know the difference between To go back to question @hediet do you consider this feature request reasonable? If yes, could I help to implement this? I don't know which correct way it would be, a new setting? Register completions as inline completions (in this case there would be 2 completion providers and what about Copilot since it uses inline completions)? I know you guys have a lot of stuff going on, but I hope one day we will have this. |
I would like to have it too, but I currently don't have the time to work on it.
You could try, but it will be hard and would even take me a couple of days. I don't have the time to assist you here. Long term, you could look out for help-wanted issues and work on them, that would help us a lot (look at this query for more issues). |
Idea would be to tweak the setting like so: |
@jrieken Amazing idea! I really like it 👍 |
@hediet I can help with this but inline completions need to become a little more powerful, like support for snippets |
First cut of this is in #145386 Screen.Recording.2022-03-18.at.11.22.54.mov |
@jrieken Looks amazing! Is it possible to make |
Yeah, you will need to use that config. For us quick suggest and trigger characters are separate and they shouldn't be married with this feature. Tho, I can confirm that things nice with it off. Screen.Recording.2022-03-18.at.12.49.53.mov |
That is awesome! Thanks a lot! ❤️ |
merged so this can be tried in next insiders |
Even before it couldn't be handled by the setting UI and all my attempts to simplify this setting didn't result in a working UI. @roblourens @rzhao271 this setting might be boss enemy of the UI and I am happy to accept any advice to make this better |
@jrieken Thanks a lot for implementing this feature, I did some testing and found out 2 issues, I'm not quite sure if you can call them "issues" maybe it's expected to work like this. If you look at the gif below, you will see when I write |
Yeah, we have a few follow-up items to make this "less nervous". The different between inline completions and "normal" completions is that the former are recomputed on each key stroke. For inline quick suggestions some caching is happening but due to UI debounce and things this isn't ideal yet. We are on it |
Very good to know, I'm really excited for this to land 🙂 |
Hello @hediet @jrieken @alexdima. I really like new setting
editor.suggest.preview
, but I'm wondering if it's possible to make these previews available even with quick suggestions disabled? It could be really powerful witheditor.tabCompletion: "on"
, because you would see suggestion as you type and you can simply hit 'Tab' to resolve it.The text was updated successfully, but these errors were encountered: