async Widget.restoreState?December 3, 2019 at 6:27pm (Edited 3 years ago)
I want to prevent the IDE from opening new shells when restoring terminals in the UI. I want to know how to handle async events in the restoreState method, or if there is a way to prevent a widget from being restored even before based on some async test?
December 4, 2019 at 4:40am
Could you avoid storing state in the first place?
If an empty object is stored as state then a widget gets disposed during restoring
December 5, 2019 at 3:36pm
To be fair I didn't really know how the async restoreState would work, but essentially the issue is that state should be stored, but when about to recreate the widget (before or while restoring) we need to asynchronously check that the state is also valid on the backend (for terminals, this means not recreating terminals if the remote process doesn't exist anymore, maybe the backend restarted). Thanks for the pointers.
December 6, 2019 at 9:46am