Skip to content
This repository was archived by the owner on Oct 16, 2020. It is now read-only.
This repository was archived by the owner on Oct 16, 2020. It is now read-only.

Use textEdit in completionItem #490

Open
@yeahio

Description

@yeahio

When requesting completions for JavaScript, CompletionItems are currently very simple, including only the label to specify the text to be inserted.

By contrast, for TypeScript they do include an insertText property, which, however, is deprecated in favor of textEdit.

TextEdits have the big advantage that they let the server specify a range to replace. This would particularly make sense in the context of issue #489 when proposing CompletionItems that replace existing content.

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