public class CompletionItemDefaults
extends java.lang.Object
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
Constructor and Description |
---|
CompletionItemDefaults() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.util.List<java.lang.String> |
getCommitCharacters()
A default commit character set.
|
java.lang.Object |
getData()
A default data value.
|
org.eclipse.lsp4j.jsonrpc.messages.Either<Range,InsertReplaceRange> |
getEditRange()
A default edit range
|
InsertTextFormat |
getInsertTextFormat()
A default insert text format
|
InsertTextMode |
getInsertTextMode()
A default insert text mode
|
int |
hashCode() |
void |
setCommitCharacters(java.util.List<java.lang.String> commitCharacters)
A default commit character set.
|
void |
setData(java.lang.Object data)
A default data value.
|
void |
setEditRange(org.eclipse.lsp4j.jsonrpc.messages.Either<Range,InsertReplaceRange> editRange)
A default edit range
|
void |
setInsertTextFormat(InsertTextFormat insertTextFormat)
A default insert text format
|
void |
setInsertTextMode(InsertTextMode insertTextMode)
A default insert text mode
|
java.lang.String |
toString() |
@Pure public java.util.List<java.lang.String> getCommitCharacters()
public void setCommitCharacters(java.util.List<java.lang.String> commitCharacters)
@Pure public org.eclipse.lsp4j.jsonrpc.messages.Either<Range,InsertReplaceRange> getEditRange()
public void setEditRange(org.eclipse.lsp4j.jsonrpc.messages.Either<Range,InsertReplaceRange> editRange)
@Pure public InsertTextFormat getInsertTextFormat()
public void setInsertTextFormat(InsertTextFormat insertTextFormat)
@Pure public InsertTextMode getInsertTextMode()
public void setInsertTextMode(InsertTextMode insertTextMode)
@Pure public java.lang.Object getData()
public void setData(java.lang.Object data)
@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