Package org.eclipse.lemminx.services
Class ResolveCompletionItemRequest
java.lang.Object
org.eclipse.lemminx.services.ResolveCompletionItemRequest
- All Implemented Interfaces:
ICompletionItemResolverRequest,IComponentProvider,ISharedSettingsRequest
Implementation of
ICompletionItemResolverRequest-
Constructor Summary
ConstructorsConstructorDescriptionResolveCompletionItemRequest(org.eclipse.lsp4j.CompletionItem unresolved, DOMDocument document, IComponentProvider componentProvider, SharedSettings sharedSettings) -
Method Summary
Modifier and TypeMethodDescriptionbooleancanSupportMarkupKind(String kind) Returnstrueif the client can support the given Markup kind for documentation andfalseotherwise.Returns the completion offset coming from the completion item data and null otherwise.<T> TgetComponent(Class clazz) Returns the component class instance from the given class and null otherwise.getDataProperty(String fieldName) Returns the value of a field from the supplementary data attached to the request as a string.getDataPropertyAsBoolean(String fieldName) 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.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.Returns the DOM document.Returns the id of the participant that can resolve the request.Returns the sharedSettings instanceorg.eclipse.lsp4j.CompletionItemReturns the unresolved completion item.booleanReturns true if the editor supports delayed resolution of additionalTextEdits and false otherwise.booleanReturns true if the editor supports delayed resolution of documentation and false otherwise.
-
Constructor Details
-
Method Details
-
getUnresolved
public org.eclipse.lsp4j.CompletionItem getUnresolved()Description copied from interface:ICompletionItemResolverRequestReturns the unresolved completion item.- Specified by:
getUnresolvedin interfaceICompletionItemResolverRequest- Returns:
- the unresolved completion item
-
getParticipantId
Description copied from interface:ICompletionItemResolverRequestReturns the id of the participant that can resolve the request.- Specified by:
getParticipantIdin interfaceICompletionItemResolverRequest- Returns:
- the id of the participant that can resolve the request
-
getDataProperty
Description copied from interface:ICompletionItemResolverRequestReturns the value of a field from the supplementary data attached to the request as a string.- Specified by:
getDataPropertyin interfaceICompletionItemResolverRequest- 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
-
canSupportMarkupKind
Description copied from interface:ISharedSettingsRequestReturnstrueif the client can support the given Markup kind for documentation andfalseotherwise.- Specified by:
canSupportMarkupKindin interfaceISharedSettingsRequest- Parameters:
kind- the markup kind- Returns:
trueif the client can support the given Markup kind for documentation andfalseotherwise.
-
getDataPropertyAsInt
Description copied from interface:ICompletionItemResolverRequestReturns 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.- Specified by:
getDataPropertyAsIntin interfaceICompletionItemResolverRequest- 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
Description copied from interface:ICompletionItemResolverRequestReturns 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.- Specified by:
getDataPropertyAsBooleanin interfaceICompletionItemResolverRequest- 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
-
getComponent
Description copied from interface:IComponentProviderReturns the component class instance from the given class and null otherwise.- Specified by:
getComponentin interfaceIComponentProvider- Parameters:
clazz- class of the component.- Returns:
- the component class instance from the given class and null otherwise.
-
getDocument
Description copied from interface:ICompletionItemResolverRequestReturns the DOM document.- Specified by:
getDocumentin interfaceICompletionItemResolverRequest- Returns:
- the DOM document
-
isResolveDocumentationSupported
public boolean isResolveDocumentationSupported()Description copied from interface:ICompletionItemResolverRequestReturns true if the editor supports delayed resolution of documentation and false otherwise.- Specified by:
isResolveDocumentationSupportedin interfaceICompletionItemResolverRequest
-
isResolveAdditionalTextEditsSupported
public boolean isResolveAdditionalTextEditsSupported()Description copied from interface:ICompletionItemResolverRequestReturns true if the editor supports delayed resolution of additionalTextEdits and false otherwise.- Specified by:
isResolveAdditionalTextEditsSupportedin interfaceICompletionItemResolverRequest
-
getCompletionOffset
Description copied from interface:ICompletionItemResolverRequestReturns the completion offset coming from the completion item data and null otherwise.- Specified by:
getCompletionOffsetin interfaceICompletionItemResolverRequest- Returns:
- the completion offset coming from the completion item data and null otherwise.
-