-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Fix menu breaking when Roo is moved between primary and secondary sidebars #4045
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
Fix menu breaking when Roo is moved between primary and secondary sidebars #4045
Conversation
…ebars Hello Roo Team! We changed this on the Kilo side and thought it might be useful to you! The menu buttons (Settings etc.) stop working when Roo is moved between the primary and secondary sidebars. This is because ClineProvider is prematurely disposed in that case This change prevents the ClineProvider from being disposed when hosted in a sidebar. It should still be disposed when hosted in a tab, because they have their own ClineProvider instance. Found while investigating Kilo-Org/kilocode#502.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good to me, it solves the issue.
I was concerned about ClineProvider never being disposed but according to my tests VSCode never disposes of ClineProvider if the sidebar is closed to keep the extension ready to be used.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Description
Hello Roo Team! We changed this on the Kilo side and thought it might be useful to you!
The menu buttons (Settings etc.) stop working when Roo is moved between the primary and secondary sidebars. This is because ClineProvider is prematurely disposed in that case.
This change prevents the ClineProvider from being disposed when hosted in a sidebar. It should still be disposed when hosted in a tab, because they have their own ClineProvider instance.
Found while investigating Kilo-Org/kilocode#502.
Test Procedure
Type of Change
Important
Fixes menu button functionality by preventing premature disposal of
ClineProvider
when Roo is moved between sidebars.ClineProvider
from being disposed when in sidebar mode inClineProvider.ts
.ClineProvider
is disposed only in tab mode.ClineProvider.ts
.This description was created by
for 323fce8. You can customize this summary. It will automatically update as commits are pushed.