Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Don't try to copy items by serializing and deserializing them#522

Merged
maxbrunsfeld merged 1 commit intomasterfrom
mb-dont-copy-by-serializing
Sep 23, 2017
Merged

Don't try to copy items by serializing and deserializing them#522
maxbrunsfeld merged 1 commit intomasterfrom
mb-dont-copy-by-serializing

Conversation

@maxbrunsfeld
Copy link
Contributor

@maxbrunsfeld maxbrunsfeld commented Sep 23, 2017

Fixes #234

Previously, when splitting an item using its tab's context menu, if the item did not have a .copy() method, we would try to copy the item by serializing it and then deserializing the serialized state. The problem with this is that for some items (e.g. the tree-view), deserialization always returns the same instance.

I think it's more explicit for copyable items to just implement a .copy() method. Before releasing this change, I need to add a .copy method to some of Atom's pane item classes:

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant