-
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
Completion frequently needs manual trigger with app code using gtk-rs #10842
Comments
This is most likely #10369 - when completions take too long to compute vscode does not show them anymore unless you manually trigger them. |
I see; what about completions disappearing when narrowing down? E.g. when I typed |
Not sure I'm doing this right, but I set
|
Closing this as the main problem here is us being too slow with completions at times which is tracked in #7542 |
I'm writing an app using gtk-rs. Even though the app is still pretty small and I have a high-end machine (Ryzen 5900X, 32 GB of RAM), I frequently get dumb completions in VSCode which I need to manually Escape out of and Ctrl-Space to manually trigger rust-analyzer ones. Then when narrowing down, the r-a completions frequently disappear, requiring another Escape and Ctrl-Space.
Here's a demonstration:
out.mp4
Every pause is intentional by me, so it's not like something happens automatically after a while. I'm just waiting to show what happens, and then manually pressing Escape and Ctrl-Space.
I can reproduce it on a clean checkout of my project:
git clone https://github.com/YaLTeR/plitki.git && cd plitki && git checkout 0a33e2994b8dc1fcc964ff1f23629e0f3ef49cda
on_activate
like I do on the video, or maybe in some other files.Completions seemed to work fine on an empty project with gtk4 added. However I really cannot call the project above anywhere close to complicated: it only contains a single window and two custom widgets.
Fedora 35 Silverblue, rust-analyzer version: 183ef04 2021-11-22 stable, VSCode 1.61.2 from Flathub opening the project in a toolbox container which works through VSCode's "Remote Container" extension.
The text was updated successfully, but these errors were encountered: