-
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
VSCode unresponsive while generating very large tooltip while editing C file #7577
Comments
This is a duplicate of #7334 and fixed with https://github.com/microsoft/vscode-cpptools/releases/tag/1.4.0-insiders2 |
I just installed the 1.4.0-insiders2 plugin version. The freezes are only about a second now. That's a massive improvement and makes this more bearable. Now it's just a mild annoyance. Thanks for the update! |
The fix was to limit the hover result to 10000 characters...it sounds like you're suggesting the limit be made even lower? Is there some particular case where the second lag is particularly a problem? (i.e. a second lag can be "normal" for many IntelliSense operations). |
My main gripe is that it still freezes the UI. AFAIK most suggestion, auto complete, and styling operations don't do that (though I could be wrong about that, for all I know those all run in a UI thread but are fast enough to not cause noticeable hitches). If the tooltip took an extra second to appear but left the rest of the UI responsive, or could be interrupted by user input, I'd be very happy, but admittedly I don't know at all how VSCode or its plugin API work so I have no idea how hard that is to do. Also if the lag is from VSCode trying to render that tooltip, maybe the primary performance issue lies upstream? Idk, just spitballing I will say that the 1 second lags I get when working in the literals list are very much bearable compared to the 5 second lags I had previously, so I thank you for that. I don't believe this is a serious issue anymore, it's just something that raises my eyebrow a little. |
Yeah, I'm not able to repro any UI freeze at all and I believe the root issue is VS Code's rendering. |
Ah, there's no lag with local Windows, but I see the UI freeze when remoting to Linux. Should be easy to fix... UPDATE: Should be fixed with 1.4.0 (not released yet)...hover display limit for literals is now 1100 characters, which is before the vertical scrollbar becomes visible. |
Bug type: General
Describe the bug
I have a particularly large array of structs that I instantiate and that the C/C++ plugin has trouble with. Open https://github.com/vgf89/gbemu/blob/579fbcee1693456c66374bace0940c637062a837/cpu.c and hover over any of the "{" or "}" in the instructions struct array (starts on line 19), and observe how VSCode freezes for multiple seconds.
If you don't move the mouse, a very very long tooltip of all of the list values appears when the lag ends. I'm not sure why the C/C++ plugin tries to generate this tooltip, and I especially don't like that it completely freezes the UI for multiple seconds while doing so.
To Reproduce
Please include code sample and
task.json
files.Steps to reproduce the behavior:
Expected behavior
VSCode shouldn't freeze when mousing over value instantiation list brackets in my c file. The tooltip it generates while doing so is also of dubious usefulness.
Screenshots
Additional context
This happens on both my laptop and much more powerful desktop, and even happens with NO other plugins installed besides the C/C++ plugin.
Here's a profile of the freeze captured from the debugger:
https://gist.github.com/vgf89/4719a0d13ebdfd1d8cdd76bf0c6ad259
The text was updated successfully, but these errors were encountered: