Open Tyriar opened 3 years ago
Changing to an enhancement since luna.retainContextWhenHidden
is more of a developer option. I've added a note to the setting that this could happen with hot exit in the meantime.
The corruption isn't as bad as it used to be but can still happen as the history stacks get out of sync, for example:
"luna.retainContextWhenHidden": false
Repro:
"luna.retainContextWhenHidden": false
This problem gets worse because if undoing before the change tabs as the entire redo stack disappears as well. It happens because Luna Paint rejects the backup promise when the image size is over a certain threshold (defined by
luna.hotExitMaxPixels
) since it can cause the canvas to become unresponsive while drawing. The history stack is included in the hot exit backup since chances are decent that it's larger than the image payload itself.https://github.com/microsoft/vscode/issues/113507 is needed from VS Code in order to properly backup backgrounded tabs and have the extension explicitly dispose of the context itself.