You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
getLayoutData still contains unserialized widgets, so conversion happens outside the application-shell scope, therefore we need to be compatible enough with DockPanel that the outer code behaves the same.
It's just the darn sizers at this point, and the restore function works perfectly fine after the main application view is ready, but not during the restoreLayout?
Clearly my own restoreLayout does what it intends:
After this, application goes from attached_shell to initialized_layout, so far so good, but then on the next IBL update:
Also probably related to the sizers problem, but scroll-position gets messed up after deserialize as well. Looking like something is adjusting the layout during the load process?
https://github.com/eclipse-theia/theia/blob/v1.29.0/packages/core/src/browser/shell/application-shell.ts#L604
getLayoutData
still contains unserialized widgets, so conversion happens outside the application-shell scope, therefore we need to be compatible enough with DockPanel that the outer code behaves the same.https://github.com/eclipse-theia/theia/blob/v1.29.0/packages/core/src/browser/shell/shell-layout-restorer.ts#L156
getLayoutData
from theAS
is called by restorerdeflate
: https://github.com/eclipse-theia/theia/blob/v1.29.0/packages/core/src/browser/shell/shell-layout-restorer.ts#L191Assumes property names must match exactly
widget
orwidgets
byisWidget(s)Property
...Widget itself if stateful should provide storeState(), but looks like CR Patches will mostly be subject to the widget manager's whims: https://github.com/eclipse-theia/theia/blob/v1.29.0/packages/core/src/browser/widget-manager.ts
So in the end maybe a patch should not be reported as a first-class widget? (We could dig into it via our own serializer)
The text was updated successfully, but these errors were encountered: