Fixes #148: No 'range' field in CompletionItem definition

This commit is contained in:
Dirk Baeumer 2017-01-10 11:44:42 +01:00
parent 5e8e1bbd4c
commit c83f106578

View file

@ -1781,9 +1781,22 @@ interface CompletionItem {
*/
insertText?: string | TypedString;
/**
* An edit which is applied to a document when selecting
* this completion. When an edit is provided the value of
* insertText is ignored.
* A range of text that should be replaced by this completion item.
*
* Defaults to a range from the start of the current word to the current position.
*
* *Note:* The range must be a single line range and it must contain the position at which completion
* has been requested.
*/
range?: Range;
/**
* @deprecated in favour of `insertText` and `range`.
*
* An edit which is applied to a document when selecting this completion. When an edit is provided the value of
* `insertText` and `range` is ignored.
*
* *Note:* The range of the edit must be a single line range and it must contain the position at which completion
* has been requested.
*/
textEdit?: TextEdit;
/**