Skip to content
This repository was archived by the owner on Sep 6, 2021. It is now read-only.
This repository was archived by the owner on Sep 6, 2021. It is now read-only.

Toggle Block Comment doesn't work with multiple cursors in one comment #7510

@njx

Description

@njx
  1. Open a JS file with a multiline block comment
  2. Create multiple cursors inside the block comment
  3. Edit > Toggle Block Comment

Result: Nothing happens. This is because we iterate over each selection independently, but both selections would try to generate the same edit (remove the outer block comment), and those overlapping edits get rejected by doMultipleEdits().

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