Package io.deephaven.web.shared.ide.lsp
Class CompletionItem
java.lang.Object
io.deephaven.web.shared.ide.lsp.CompletionItem
- All Implemented Interfaces:
Serializable
A completion suggestion for use by the IDE language tools.
This is a JS-exposed model type (dh.lsp.CompletionItem) that closely follows the Language Server Protocol
completion item shape.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionelemental2.core.JsArray<TextEdit> Additional edits to apply when this completion item is accepted.elemental2.core.JsArray<String> Characters that commit this completion item if typed.booleanWhether this completion item is deprecated.Additional detail text to display alongsidelabel.Documentation for this completion item.Filter text used to match this completion item against a query.intThe insert text format (for example, plain text vs snippet), represented as an integer.intThe kind of completion item (for example, method, variable, keyword), represented as an integer.The primary label to display for this completion item.booleanWhether this completion item should be preselected in completion UI.Sort text for ordering completion items.The edit to apply to the document when this completion item is accepted. -
Constructor Summary
ConstructorsConstructorDescriptionCompletionItem(int start, int length, String completion, String displayed, DocumentRange range) CompletionItem(int start, int length, String completion, String displayed, String source) This constructor matches CompletionFragment semantics; it is here to ease the transition to the LSP model. -
Method Summary
Modifier and TypeMethodDescriptionbooleanintThis is not used for monaco or lsp; it is only here for compatibility w/ swing autocompleteintgetStart()This is not used for monaco or lsp; it is only here for compatibility w/ swing autocompleteinthashCode()voidsetLength(int length) voidsetStart(int start) toString()
-
Field Details
-
label
The primary label to display for this completion item. -
kind
public int kindThe kind of completion item (for example, method, variable, keyword), represented as an integer. -
detail
Additional detail text to display alongsidelabel. -
documentation
Documentation for this completion item. -
deprecated
public boolean deprecatedWhether this completion item is deprecated. -
preselect
public boolean preselectWhether this completion item should be preselected in completion UI. -
textEdit
The edit to apply to the document when this completion item is accepted. -
sortText
Sort text for ordering completion items. -
filterText
Filter text used to match this completion item against a query. -
insertTextFormat
public int insertTextFormatThe insert text format (for example, plain text vs snippet), represented as an integer. -
additionalTextEdits
Additional edits to apply when this completion item is accepted. -
commitCharacters
Characters that commit this completion item if typed.
-
-
Constructor Details
-
Method Details
-
sortText
-
getStart
@JsIgnore public int getStart()This is not used for monaco or lsp; it is only here for compatibility w/ swing autocomplete -
setStart
@JsIgnore public void setStart(int start) -
getLength
@JsIgnore public int getLength()This is not used for monaco or lsp; it is only here for compatibility w/ swing autocomplete -
setLength
@JsIgnore public void setLength(int length) -
toString
-
equals
-
hashCode
@JsIgnore public int hashCode()
-