| Modifier and Type | Field and Description |
|---|---|
| private List | additionalTextEdits
An optional array of additional text edits that are applied when selecting this completion. |
| private Command | command
An optional command that is executed after inserting this completion Note that
additional modifications to the current document should be described with the
|
| private List | commitCharacters
An optional set of characters that when pressed while this completion is active will accept it first and then type that character Note that all commit characters should have |
| private Object | data
A data entry field that is preserved on a completion item between a completion and a completion resolve request. |
| private Boolean | deprecated
Deprecated
Use Indicates if this item is deprecated.
tags instead if supported.
|
| private String | detail
A human-readable string with additional information about this item, like type or symbol information. |
| private Either | documentation
A human-readable string that represents a doc-comment. |
| private String | filterText
A string that should be used when filtering a set of completion items. |
| private String | insertText
A string that should be inserted a document when selecting this completion. |
| private InsertTextFormat | insertTextFormat
The format of the insert text. |
| private InsertTextMode | insertTextMode
How whitespace and indentation is handled during completion item insertion. |
| private CompletionItemKind | kind
The kind of this completion item. |
| private String | label
The label of this completion item. |
| private CompletionItemLabelDetails | |
| private Boolean | preselect
Select this item when showing. |
| private String | sortText
A string that should be used when comparing this item with other items. |
| private List | tags
Tags for this completion item. |
| private Either | textEdit
An edit which is applied to a document when selecting this completion. |
| private String | textEditText
The edit text used if the completion item is part of a CompletionList and CompletionList defines an item default for the text edit range. |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(final Object obj)
Overrides java. Indicates whether some other object is "equal to" this one. |
| public List | getAdditionalTextEdits()
An optional array of additional text edits that are applied when selecting this completion. |
| public Command | getCommand()
An optional command that is executed after inserting this completion Note that
additional modifications to the current document should be described with the
|
| public List | getCommitCharacters()
An optional set of characters that when pressed while this completion is active will accept it first and then type that character Note that all commit characters should have |
| public Object | getData()
A data entry field that is preserved on a completion item between a completion and a completion resolve request. |
| public Boolean | |
| public String | getDetail()
A human-readable string with additional information about this item, like type or symbol information. |
| public Either | |
| public String | |
| public String | |
| public InsertTextFormat | |
| public InsertTextMode | |
| public CompletionItemKind | |
| public String | |
| public CompletionItemLabelDetails | |
| public Boolean | |
| public String | |
| public List | |
| public Either | |
| public String | getTextEditText()
The edit text used if the completion item is part of a CompletionList and CompletionList defines an item default for the text edit range. |
| public int | |
| public void | setAdditionalTextEdits(final List<TextEdit> additionalTextEdits)
An optional array of additional text edits that are applied when selecting this completion. |
| public void | setCommand(final Command command)
An optional command that is executed after inserting this completion Note that
additional modifications to the current document should be described with the
|
| public void | setCommitCharacters(final List<String> commitCharacters)
An optional set of characters that when pressed while this completion is active will accept it first and then type that character Note that all commit characters should have |
| public void | |
| public void | setDeprecated(final Boolean deprecated)
Deprecated
Use
tags instead if supported.
Indicates if this item is deprecated. |
| public void | |
| public void | setDocumentation(final Either<String, MarkupContent> documentation)
A human-readable string that represents a doc-comment. |
| public void | |
| public void | |
| public void | setFilterText(final String filterText)
A string that should be used when filtering a set of completion items. |
| public void | setInsertText(final String insertText)
A string that should be inserted a document when selecting this completion. |
| public void | |
| public void | setInsertTextMode(final InsertTextMode insertTextMode)
How whitespace and indentation is handled during completion item insertion. |
| public void | |
| public void | |
| public void | setLabelDetails(final CompletionItemLabelDetails labelDetails)
Additional details for the label Since 3.17.0 |
| public void | |
| public void | setSortText(final String sortText)
A string that should be used when comparing this item with other items. |
| public void | |
| public void | setTextEdit(final Either<TextEdit, InsertReplaceEdit> textEdit)
An edit which is applied to a document when selecting this completion. |
| public void | setTextEditText(final String textEditText)
The edit text used if the completion item is part of a CompletionList and CompletionList defines an item default for the text edit range. |
| public String |
| additionalTextEdits | back to summary |
|---|---|
| private List<TextEdit> additionalTextEdits An optional array of additional text edits that are applied when selecting this completion. Edits must not overlap (including the same insert position) with the main edit nor with themselves. Additional text edits should be used to change text unrelated to the current cursor position (for example adding an import statement at the top of the file if the completion item will insert an unqualified type). | |
| command | back to summary |
|---|---|
| private Command command An optional command that is executed after inserting this completion Note that
additional modifications to the current document should be described with the
| |
| commitCharacters | back to summary |
|---|---|
| private List<String> commitCharacters An optional set of characters that when pressed while this completion is active will accept it first and then type that character Note that all commit characters should have Since 3.2.0 | |
| data | back to summary |
|---|---|
| private Object data A data entry field that is preserved on a completion item between a completion and a completion resolve request. | |
| deprecated | back to summary |
|---|---|
| private Boolean deprecated
Deprecated Use Indicates if this item is deprecated. Since 3.8.0 | |
| detail | back to summary |
|---|---|
| private String detail A human-readable string with additional information about this item, like type or symbol information. | |
| documentation | back to summary |
|---|---|
| private Either<String, MarkupContent> documentation A human-readable string that represents a doc-comment. | |
| filterText | back to summary |
|---|---|
| private String filterText A string that should be used when filtering a set of completion items. When omitted or empty,
the | |
| insertText | back to summary |
|---|---|
| private String insertText A string that should be inserted a document when selecting this completion. When omitted or empty,
the | |
| insertTextFormat | back to summary |
|---|---|
| private InsertTextFormat insertTextFormat The format of the insert text. The format applies to both the
Please note that this doesn't apply to | |
| insertTextMode | back to summary |
|---|---|
| private InsertTextMode insertTextMode How whitespace and indentation is handled during completion item
insertion. If not provided, the client's default value depends on
the Since 3.16.0 | |
| kind | back to summary |
|---|---|
| private CompletionItemKind kind The kind of this completion item. Based of the kind an icon is chosen by the editor. | |
| label | back to summary |
|---|---|
| private String label The label of this completion item. By default also the text that is inserted when selecting this completion. If label details are provided, the label itself should be an unqualified name of the completion item. | |
| labelDetails | back to summary |
|---|---|
| private CompletionItemLabelDetails labelDetails Additional details for the label Since 3.17.0 | |
| preselect | back to summary |
|---|---|
| private Boolean preselect Select this item when showing. Note that only one completion item can be selected and that the tool / client decides which item that is. The rule is that the first item of those that match best is selected. Since 3.9.0 | |
| sortText | back to summary |
|---|---|
| private String sortText A string that should be used when comparing this item with other items. When omitted or empty,
the | |
| tags | back to summary |
|---|---|
| private List<CompletionItemTag> tags Tags for this completion item. Since 3.15.0 | |
| textEdit | back to summary |
|---|---|
| private Either<TextEdit, InsertReplaceEdit> textEdit An edit which is applied to a document when selecting this completion.
When an edit is provided the value of Note The range of the edit must be a single line range and it must contain the position at which completion has been requested.
Most editors support two different operations when accepting a completion
item. One is to insert a completion text and the other is to replace an
existing text with a completion text. Since this can usually not be
predetermined by a server it can report both ranges. Clients need to
signal support for Note 1: The text edit's range as well as both ranges from an insert replace edit must be a [single line] and they must contain the position at which completion has been requested.
Note 2: If an
Since 3.16.0 additional type | |
| textEditText | back to summary |
|---|---|
| private String textEditText The edit text used if the completion item is part of a CompletionList and CompletionList defines an item default for the text edit range.
Clients will only honor this property if they opt into completion list
item defaults using the capability If not provided and a list's default range is provided the label property is used as a text. Since 3.17.0 | |
| CompletionItem | back to summary |
|---|---|
| public CompletionItem() | |
| CompletionItem | back to summary |
|---|---|
| public CompletionItem(final String label) | |
| equals | back to summary |
|---|---|
| public boolean equals(final Object obj) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes.
| |
| getAdditionalTextEdits | back to summary |
|---|---|
| public List An optional array of additional text edits that are applied when selecting this completion. Edits must not overlap (including the same insert position) with the main edit nor with themselves. Additional text edits should be used to change text unrelated to the current cursor position (for example adding an import statement at the top of the file if the completion item will insert an unqualified type). | |
| getCommand | back to summary |
|---|---|
| public Command getCommand() An optional command that is executed after inserting this completion Note that
additional modifications to the current document should be described with the
| |
| getCommitCharacters | back to summary |
|---|---|
| public List An optional set of characters that when pressed while this completion is active will accept it first and then type that character Note that all commit characters should have Since 3.2.0 | |
| getData | back to summary |
|---|---|
| public Object getData() A data entry field that is preserved on a completion item between a completion and a completion resolve request. | |
| getDeprecated | back to summary |
|---|---|
| public Boolean getDeprecated()
Deprecated Use Indicates if this item is deprecated. Since 3.8.0
| |
| getDetail | back to summary |
|---|---|
| public String getDetail() A human-readable string with additional information about this item, like type or symbol information. | |
| getDocumentation | back to summary |
|---|---|
| public Either A human-readable string that represents a doc-comment. | |
| getFilterText | back to summary |
|---|---|
| public String getFilterText() A string that should be used when filtering a set of completion items. When omitted or empty,
the | |
| getInsertText | back to summary |
|---|---|
| public String getInsertText() A string that should be inserted a document when selecting this completion. When omitted or empty,
the | |
| getInsertTextFormat | back to summary |
|---|---|
| public InsertTextFormat getInsertTextFormat() The format of the insert text. The format applies to both the
Please note that this doesn't apply to | |
| getInsertTextMode | back to summary |
|---|---|
| public InsertTextMode getInsertTextMode() How whitespace and indentation is handled during completion item
insertion. If not provided, the client's default value depends on
the Since 3.16.0 | |
| getKind | back to summary |
|---|---|
| public CompletionItemKind getKind() The kind of this completion item. Based of the kind an icon is chosen by the editor. | |
| getLabel | back to summary |
|---|---|
| public String getLabel() The label of this completion item. By default also the text that is inserted when selecting this completion. If label details are provided, the label itself should be an unqualified name of the completion item.
| |
| getLabelDetails | back to summary |
|---|---|
| public CompletionItemLabelDetails getLabelDetails() Additional details for the label Since 3.17.0 | |
| getPreselect | back to summary |
|---|---|
| public Boolean getPreselect() Select this item when showing. Note that only one completion item can be selected and that the tool / client decides which item that is. The rule is that the first item of those that match best is selected. Since 3.9.0 | |
| getSortText | back to summary |
|---|---|
| public String getSortText() A string that should be used when comparing this item with other items. When omitted or empty,
the | |
| getTags | back to summary |
|---|---|
| public List Tags for this completion item. Since 3.15.0 | |
| getTextEdit | back to summary |
|---|---|
| public Either An edit which is applied to a document when selecting this completion.
When an edit is provided the value of Note The range of the edit must be a single line range and it must contain the position at which completion has been requested.
Most editors support two different operations when accepting a completion
item. One is to insert a completion text and the other is to replace an
existing text with a completion text. Since this can usually not be
predetermined by a server it can report both ranges. Clients need to
signal support for Note 1: The text edit's range as well as both ranges from an insert replace edit must be a [single line] and they must contain the position at which completion has been requested.
Note 2: If an
Since 3.16.0 additional type | |
| getTextEditText | back to summary |
|---|---|
| public String getTextEditText() The edit text used if the completion item is part of a CompletionList and CompletionList defines an item default for the text edit range.
Clients will only honor this property if they opt into completion list
item defaults using the capability If not provided and a list's default range is provided the label property is used as a text. Since 3.17.0 | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| setAdditionalTextEdits | back to summary |
|---|---|
| public void setAdditionalTextEdits(final List<TextEdit> additionalTextEdits) An optional array of additional text edits that are applied when selecting this completion. Edits must not overlap (including the same insert position) with the main edit nor with themselves. Additional text edits should be used to change text unrelated to the current cursor position (for example adding an import statement at the top of the file if the completion item will insert an unqualified type). | |
| setCommand | back to summary |
|---|---|
| public void setCommand(final Command command) An optional command that is executed after inserting this completion Note that
additional modifications to the current document should be described with the
| |
| setCommitCharacters | back to summary |
|---|---|
| public void setCommitCharacters(final List<String> commitCharacters) An optional set of characters that when pressed while this completion is active will accept it first and then type that character Note that all commit characters should have Since 3.2.0 | |
| setData | back to summary |
|---|---|
| public void setData(final Object data) A data entry field that is preserved on a completion item between a completion and a completion resolve request. | |
| setDeprecated | back to summary |
|---|---|
| public void setDeprecated(final Boolean deprecated)
Deprecated Use Indicates if this item is deprecated. Since 3.8.0
| |
| setDetail | back to summary |
|---|---|
| public void setDetail(final String detail) A human-readable string with additional information about this item, like type or symbol information. | |
| setDocumentation | back to summary |
|---|---|
| public void setDocumentation(final Either<String, MarkupContent> documentation) A human-readable string that represents a doc-comment. | |
| setDocumentation | back to summary |
|---|---|
| public void setDocumentation(final String documentation) | |
| setDocumentation | back to summary |
|---|---|
| public void setDocumentation(final MarkupContent documentation) | |
| setFilterText | back to summary |
|---|---|
| public void setFilterText(final String filterText) A string that should be used when filtering a set of completion items. When omitted or empty,
the | |
| setInsertText | back to summary |
|---|---|
| public void setInsertText(final String insertText) A string that should be inserted a document when selecting this completion. When omitted or empty,
the | |
| setInsertTextFormat | back to summary |
|---|---|
| public void setInsertTextFormat(final InsertTextFormat insertTextFormat) The format of the insert text. The format applies to both the
Please note that this doesn't apply to | |
| setInsertTextMode | back to summary |
|---|---|
| public void setInsertTextMode(final InsertTextMode insertTextMode) How whitespace and indentation is handled during completion item
insertion. If not provided, the client's default value depends on
the Since 3.16.0 | |
| setKind | back to summary |
|---|---|
| public void setKind(final CompletionItemKind kind) The kind of this completion item. Based of the kind an icon is chosen by the editor. | |
| setLabel | back to summary |
|---|---|
| public void setLabel(final String label) The label of this completion item. By default also the text that is inserted when selecting this completion. If label details are provided, the label itself should be an unqualified name of the completion item. | |
| setLabelDetails | back to summary |
|---|---|
| public void setLabelDetails(final CompletionItemLabelDetails labelDetails) Additional details for the label Since 3.17.0 | |
| setPreselect | back to summary |
|---|---|
| public void setPreselect(final Boolean preselect) Select this item when showing. Note that only one completion item can be selected and that the tool / client decides which item that is. The rule is that the first item of those that match best is selected. Since 3.9.0 | |
| setSortText | back to summary |
|---|---|
| public void setSortText(final String sortText) A string that should be used when comparing this item with other items. When omitted or empty,
the | |
| setTags | back to summary |
|---|---|
| public void setTags(final List<CompletionItemTag> tags) Tags for this completion item. Since 3.15.0 | |
| setTextEdit | back to summary |
|---|---|
| public void setTextEdit(final Either<TextEdit, InsertReplaceEdit> textEdit) An edit which is applied to a document when selecting this completion.
When an edit is provided the value of Note The range of the edit must be a single line range and it must contain the position at which completion has been requested.
Most editors support two different operations when accepting a completion
item. One is to insert a completion text and the other is to replace an
existing text with a completion text. Since this can usually not be
predetermined by a server it can report both ranges. Clients need to
signal support for Note 1: The text edit's range as well as both ranges from an insert replace edit must be a [single line] and they must contain the position at which completion has been requested.
Note 2: If an
Since 3.16.0 additional type | |
| setTextEditText | back to summary |
|---|---|
| public void setTextEditText(final String textEditText) The edit text used if the completion item is part of a CompletionList and CompletionList defines an item default for the text edit range.
Clients will only honor this property if they opt into completion list
item defaults using the capability If not provided and a list's default range is provided the label property is used as a text. Since 3.17.0 | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non-
| |