Saving state of windows and workspace preferences

If I launch a Theia container, load a workspace and arrange all the panes with the layout and default content I want displayed, and then I snapshot the image, when I relaunch a new container, the panes layout is not preserved.

How can I tell Theia to save this state, and restore it to the way it was when I snapshotted it? Do I need to run a “save preferences” command inside Theia in order for it to remember these preferences?

[original thread by Nate Aune]

Each browser window can has own layout, because of it the layout is stored as a part of the local browser storage scoped by a workspace.

You will need a custom extension if you wan to have it differently. Default behaviour is implemented here: https://github.com/eclipse-theia/theia/blob/b98c5fb535dd48054aacc1505e1c70f46974b516/packages/core/src/browser/shell/shell-layout-restorer.ts#L142-L163