Interface ICompletionItemResolverRequest
-
- All Superinterfaces:
IComponentProvider,ISharedSettingsRequest
- All Known Implementing Classes:
ResolveCompletionItemRequest
public interface ICompletionItemResolverRequest extends ISharedSettingsRequest, IComponentProvider
Represents a request from the client to resolve a given completion item, with information needed to resolve the request attached.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description IntegergetCompletionOffset()Returns the completion offset coming from the completion item data and null otherwise.StringgetDataProperty(String fieldName)Returns the value of a field from the supplementary data attached to the request as a string.BooleangetDataPropertyAsBoolean(String participantId)Returns the value of a field from the supplementary data attached to the request as an boolean, or null if the field is not an boolean.IntegergetDataPropertyAsInt(String fieldName)Returns the value of a field from the supplementary data attached to the request as an integer, or null if the field is not an integer.DOMDocumentgetDocument()Returns the DOM document.StringgetParticipantId()Returns the id of the participant that can resolve the request.org.eclipse.lsp4j.CompletionItemgetUnresolved()Returns the unresolved completion item.booleanisResolveAdditionalTextEditsSupported()Returns true if the editor supports delayed resolution of additionalTextEdits and false otherwise.booleanisResolveDocumentationSupported()Returns true if the editor supports delayed resolution of documentation and false otherwise.-
Methods inherited from interface org.eclipse.lemminx.services.extensions.IComponentProvider
getComponent
-
Methods inherited from interface org.eclipse.lemminx.services.extensions.ISharedSettingsRequest
canSupportMarkupKind, getSharedSettings
-
-
-
-
Method Detail
-
getUnresolved
org.eclipse.lsp4j.CompletionItem getUnresolved()
Returns the unresolved completion item.- Returns:
- the unresolved completion item
-
getParticipantId
String getParticipantId()
Returns the id of the participant that can resolve the request.- Returns:
- the id of the participant that can resolve the request
-
getDataProperty
String getDataProperty(String fieldName)
Returns the value of a field from the supplementary data attached to the request as a string.- Parameters:
fieldName- the name of the field to retrieve the data from- Returns:
- the value of a field from the supplementary data attached to the request as a string
-
getDataPropertyAsInt
Integer getDataPropertyAsInt(String fieldName)
Returns the value of a field from the supplementary data attached to the request as an integer, or null if the field is not an integer.- Parameters:
fieldName- the name of the field to retrieve the data from- Returns:
- the value of a field from the supplementary data attached to the request as an integer, or null if the field is not an integer
-
getDataPropertyAsBoolean
Boolean getDataPropertyAsBoolean(String participantId)
Returns the value of a field from the supplementary data attached to the request as an boolean, or null if the field is not an boolean.- Parameters:
fieldName- the name of the field to retrieve the data from- Returns:
- the value of a field from the supplementary data attached to the request as an boolean, or null if the field is not an boolean
-
getDocument
DOMDocument getDocument()
Returns the DOM document.- Returns:
- the DOM document
-
isResolveDocumentationSupported
boolean isResolveDocumentationSupported()
Returns true if the editor supports delayed resolution of documentation and false otherwise.
-
isResolveAdditionalTextEditsSupported
boolean isResolveAdditionalTextEditsSupported()
Returns true if the editor supports delayed resolution of additionalTextEdits and false otherwise.
-
getCompletionOffset
Integer getCompletionOffset()
Returns the completion offset coming from the completion item data and null otherwise.- Returns:
- the completion offset coming from the completion item data and null otherwise.
-
-