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
Description
When requesting completions for JavaScript, CompletionItem
s 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
.
TextEdit
s 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 CompletionItem
s that replace existing content.
Metadata
Metadata
Assignees
Labels
No labels