Skip to content

Lookup insertion results sends 'rangeLength' ? #341

@payne911

Description

@payne911

Typing System. and selecting out as the option to insert from the code completion lookup that appears in the IDE results in this being sent:

Notification {
  method: "textDocument/didChange",
  params: Object {
    "contentChanges": Array [
      Object {
        "range": Object {
          "end": Object {
            "character": Number(11),
            "line": Number(6)
          },
          "start": Object {
            "character": Number(11),
            "line": Number(6)
          }
        },
        "rangeLength": Number(3),
        "text": String("out")
      }
    ]
  }
}

It seems like rangeLength should not be specified given this is an insertion rather than a replacement (since range.start == range.end).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions