Closed davelnewton closed 7 years ago
There are a number of issues causing this, primary issue seems to be the introduction of a PaneAxis
class. I have partial workarounds (and some horrendous dupe code because I don't know the Atom APIs at all) in my fork, https://github.com/davelnewton/save-workspace-atom-plugin, if you're interested in taking a look at my WIP.
TODO: De-dupe the code, and fix it properly, because right now restoring the workspace is creating an entirely new pane into which all things are stuck. It's maybe 65% viable.
It's now closer to 85% viable. I refactored out much of the duped code and the saving/restoring is largely functional. I haven't tested strongly for various orientation combinations yet.
@davelnewton I've merged your PR, seems it works now, so I'm closing issue. Thank you very much!
@denieler Great; I think there may be some edge cases that make it blow up but I haven't had a chance to revisit this yet. Sorry!
Latest Atom (1.12.7) and plugin.
If I have more than two panes the plugin pukes with the stack trace below.
I suspect the pane-saving code needs to be more recursive as well, but I don't know the Atom pane API at all--I'll check it out today or tomorrow to see if I can resolve this on my own and provide a PR.