Skip to content

Change insertion markers to use JSON deserialization when duplicating blocks #7316

@BeksOmega

Description

@BeksOmega

Check for duplicates

  • I have searched for similar issues before opening a new one.

Problem

Insertion markers duplicate the block being dragged, and then tell the duplicate to be an insertion marker.

Currently the duplication duplicates (ha) a lot of code from the serialization system. We think this is because in the past the XML system didn't have a good way to just serialize and deserialize a single block (without children). But the JSON system does have this!

Request

Change the insertion marker createMarkerBlock code over to use JSON serialization and deserialization.

Alternatives considered

No response

Additional context

Sparked by this discussion: https://groups.google.com/g/blockly/c/gcvynl88QLY/m/shFyX4x0BwAJ

Metadata

Metadata

Assignees

Labels

issue: feature requestDescribes a new feature and why it should be addedsize: smallBugs that can be picked up and completed in 1-3 days

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions