Skip to content

[Drag and drop] Ensure main code is inserted after the imports #424

Open
@microbit-matt-hillsdon

Description

@microbit-matt-hillsdon

If there's existing content in the editor then it's possible to insert a code snippet via dnd like this:

image

...which isn't ideal! The cursor position will also be confused as it assumes it should be offset by the length of the inserted imports.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions