public class CompletionList
extends java.lang.Object
| Constructor and Description |
|---|
CompletionList() |
CompletionList(boolean isIncomplete,
java.util.List<CompletionItem> items) |
CompletionList(boolean isIncomplete,
java.util.List<CompletionItem> items,
CompletionItemDefaults itemDefaults) |
CompletionList(java.util.List<CompletionItem> items) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
CompletionItemDefaults |
getItemDefaults()
In many cases the items of an actual completion result share the same
value for properties like
CompletionItem.commitCharacters or the range of a text
edit. |
java.util.List<CompletionItem> |
getItems()
The completion items.
|
int |
hashCode() |
boolean |
isIncomplete()
This list is not complete.
|
void |
setIsIncomplete(boolean isIncomplete)
This list is not complete.
|
void |
setItemDefaults(CompletionItemDefaults itemDefaults)
In many cases the items of an actual completion result share the same
value for properties like
CompletionItem.commitCharacters or the range of a text
edit. |
void |
setItems(java.util.List<CompletionItem> items)
The completion items.
|
java.lang.String |
toString() |
public CompletionList()
public CompletionList(java.util.List<CompletionItem> items)
public CompletionList(boolean isIncomplete,
java.util.List<CompletionItem> items)
public CompletionList(boolean isIncomplete,
java.util.List<CompletionItem> items,
CompletionItemDefaults itemDefaults)
@Pure public boolean isIncomplete()
public void setIsIncomplete(boolean isIncomplete)
@Pure public java.util.List<CompletionItem> getItems()
public void setItems(java.util.List<CompletionItem> items)
@Pure public CompletionItemDefaults getItemDefaults()
CompletionItem.commitCharacters or the range of a text
edit. A completion list can therefore define item defaults which will
be used if a completion item itself doesn't specify the value.
If a completion list specifies a default value and a completion item also specifies a corresponding value the one from the item is used.
Servers are only allowed to return default values if the client
signals support for this via the CompletionListCapabilities.itemDefaults
capability.
Since 3.17.0
public void setItemDefaults(CompletionItemDefaults itemDefaults)
CompletionItem.commitCharacters or the range of a text
edit. A completion list can therefore define item defaults which will
be used if a completion item itself doesn't specify the value.
If a completion list specifies a default value and a completion item also specifies a corresponding value the one from the item is used.
Servers are only allowed to return default values if the client
signals support for this via the CompletionListCapabilities.itemDefaults
capability.
Since 3.17.0
@Pure public java.lang.String toString()
toString in class java.lang.Object@Pure public boolean equals(java.lang.Object obj)
equals in class java.lang.Object@Pure public int hashCode()
hashCode in class java.lang.Object