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.

Inline editor incorrectly updates visual range when preceding line is deleted #493

@jasonsanjose

Description

@jasonsanjose
  1. Open this project https://gist.github.com/b045aac6ba362b4f0974
  2. Open index.html and open an inline editor at <div>
  3. Open styles.css
  4. Place cursor at line 4, Shift+ArrowDown, then delete to fully delete line 4 and the trailing line break

Observe the inline editor for styles.css is hiding the first line of the CSS rule. Also Editor._visibleRange returns [5,6] instead of [4,6]. See xit test in InlineEditorProviders-test "should sync deletions from the full editor and update the visual range of the inline editor"

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions