Skip to content

On Format of nested tags: Overlapping ranges not allowed #12

Open
@mjbvz

Description

@mjbvz

Try running format on the following file:

const Nav = function() {
  return html`
    <h1>Sections</h1>
    <ul>
      ${repeat(items, i => i.id, (i, index) =>
        html`
          <li>
            ${index}: ${i.name}
          </li>
        `)}
    </ul>
  `;
}

In VSCode, see error about Overlapping ranges not allowed. This is caused by us trying to apply both sets of edits. The outer edits include a formatting for the inner placeholder which conflicts with the edits returned form the inner placeholder html section

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions