-
Notifications
You must be signed in to change notification settings - Fork 29.3k
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
Typing is laggy when outline is visible #96914
Comments
Figured out that this is called on every keystroke:
This is odd, especial because
So why is
|
Adding @sandy081 who wrote that marker service and because this likely affects the markers panel? |
This doesn't reproduce for me, e.g no slow typing or freezing nor does the FPS change when toggling I am not arguing that it is smart to always call this function but I definitetly see no slowing, freezing and anything remotely related to that. |
Freeze only repos on windows (linux unknown, mac not) |
The event firing soo often is actually the right thing because it means (bad naming) ranges of diagnostics markers of this file have changed. And that happens when typing... I will debounce this in the outline view |
Pushed change to debounce the @sandy081 leaving the rest to you. Idk how else this service is used and if its internal content change listener should be debounced or not. I feel it should but idk how that affects other consumers. This call/event:
|
Thanks @jrieken, debouncing is definitely a good change. But yeah, there's still the question of why is that even firing at all, when there aren't any changes to the markers. |
I introduced @jrieken Seems you added Please change it according to the needs of OutlinePane. |
Sorry @jrieken. I just focused on last comment - #96914 (comment) Also debounced the internal content change event. |
Steps:
vscode-docs
release-notes/v1_45.md
Here's the profile screenshot with outline open:
With outline closed:
cc @jrieken
The text was updated successfully, but these errors were encountered: