-
Notifications
You must be signed in to change notification settings - Fork 31
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
Investigate focus change and selection update onModelRootChanged
#1194
Comments
When we receive a model update and the selection state (ids of selected elements) stays the same, we should not send out a selection changed event. Code interested in model updates can listen to root changes manually. This also prevents Theia from permanently updating the selection if only the root element was changed. Fixes eclipse-glsp/glsp#1194
When we receive a model update and the selection state (ids of selected elements) stays the same, we should not send out a selection changed event. Code interested in model updates can listen to root changes manually. This also prevents Theia from permanently updating the selection if only the root element was changed. Fixes eclipse-glsp/glsp#1194
I opened a PR that no longer sends a selection update when we only change the root but all the selected elements stay the same. I think this was a remnant of some older code that we no longer need. This also prevents the Theia-GLSP-Selection-Forwarder from being triggered all the time. We still do the |
When we receive a model update and the selection state (ids of selected elements) stays the same, we should not send out a selection changed event. Code interested in model updates can listen to root changes manually. This also prevents Theia from permanently updating the selection if only the root element was changed. Fixes eclipse-glsp/glsp#1194
When we receive a model update and the selection state (ids of selected elements) stays the same, we should not send out a selection changed event. Code interested in model updates can listen to root changes manually. This also prevents Theia from permanently updating the selection if only the root element was changed. Fixes eclipse-glsp/glsp#1194
…#313) When we receive a model update and the selection state (ids of selected elements) stays the same, we should not send out a selection changed event. Code interested in model updates can listen to root changes manually. This also prevents Theia from permanently updating the selection if only the root element was changed. Fixes eclipse-glsp/glsp#1194
See #1186 (reply in thread) for the origin of this issue.
We should investigate:
onModelRootChanged
to an empty set? Imho this should be reconsidered if that's necessary / useful. SeeSelectionService.modelRootChanged
?The text was updated successfully, but these errors were encountered: