-
Notifications
You must be signed in to change notification settings - Fork 30.2k
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
ReviewZoneWidget
makes duplicate calls to show()
+ hide()
#174263
Comments
Thanks for creating this issue! It looks like you may be using an old version of VS Code, the latest stable release is 1.75.1. Please try upgrading to the latest version and checking whether this issue remains. Happy Coding! |
Thanks triage bot, but I wish you handled "freshly built from HEAD" a bit better! |
Looking a bit further, it seems to be the case that |
Hm, it actually seems a bit worse still regarding the number of calls to This is not a performance problem right now but it seems like a spot with potential to multiply any future slowdown on the layout path. |
For the slightly excessive firing of
|
Does this issue occur when all extensions are disabled?: Yes
Steps to Reproduce:
ReviewZoneWidget.toggleExpand()
sets the comment thread'scollapsibleState
toCollapsed
:vscode/src/vs/workbench/contrib/comments/browser/commentThreadZoneWidget.ts
Line 278 in e282742
hide()
:vscode/src/vs/workbench/contrib/comments/browser/commentThreadZoneWidget.ts
Line 377 in e282742
toggleExpand()
follows this up with an explicit, duplicate call tohide()
:vscode/src/vs/workbench/contrib/comments/browser/commentThreadZoneWidget.ts
Line 279 in e282742
For the other direction, the problem is the same and
show()
is called twice with identical parameters on every change.I am not sure if these duplicate calls cause unnecessary rendering or similar elsewhere in the stack, but they seem redundant. I think relying on the listener for
onDidChangeCollapsibleState
is probably sufficient, but I am not that familiar enough with the code base to have a confident opinion here.The text was updated successfully, but these errors were encountered: