mirror of
https://github.com/microsoft/language-server-protocol.git
synced 2025-12-23 08:48:16 +00:00
Fixes #148: No 'range' field in CompletionItem definition
This commit is contained in:
parent
5e8e1bbd4c
commit
c83f106578
1 changed files with 16 additions and 3 deletions
19
protocol.md
19
protocol.md
|
|
@ -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;
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue