public class ResolveCompletionItemRequest extends Object implements ICompletionItemResolverRequest
ICompletionItemResolverRequest| Constructor and Description |
|---|
ResolveCompletionItemRequest(org.eclipse.lsp4j.CompletionItem unresolved,
DOMDocument document,
IComponentProvider componentProvider,
SharedSettings sharedSettings) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canSupportMarkupKind(String kind)
Returns
true if the client can support the given Markup kind for
documentation and false otherwise. |
Integer |
getCompletionOffset()
Returns the completion offset coming from the completion item data and null
otherwise.
|
<T> T |
getComponent(Class clazz)
Returns the component class instance from the given class and null otherwise.
|
String |
getDataProperty(String fieldName)
Returns the value of a field from the supplementary data attached to the
request as a string.
|
Boolean |
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.
|
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.
|
DOMDocument |
getDocument()
Returns the DOM document.
|
String |
getParticipantId()
Returns the id of the participant that can resolve the request.
|
SharedSettings |
getSharedSettings()
Returns the sharedSettings instance
|
org.eclipse.lsp4j.CompletionItem |
getUnresolved()
Returns the unresolved completion item.
|
boolean |
isResolveAdditionalTextEditsSupported()
Returns true if the editor supports delayed resolution of additionalTextEdits
and
false otherwise.
|
boolean |
isResolveDocumentationSupported()
Returns true if the editor supports delayed resolution of documentation and
false otherwise.
|
public ResolveCompletionItemRequest(org.eclipse.lsp4j.CompletionItem unresolved,
DOMDocument document,
IComponentProvider componentProvider,
SharedSettings sharedSettings)
public org.eclipse.lsp4j.CompletionItem getUnresolved()
ICompletionItemResolverRequestgetUnresolved in interface ICompletionItemResolverRequestpublic String getParticipantId()
ICompletionItemResolverRequestgetParticipantId in interface ICompletionItemResolverRequestpublic String getDataProperty(String fieldName)
ICompletionItemResolverRequestgetDataProperty in interface ICompletionItemResolverRequestfieldName - the name of the field to retrieve the data frompublic boolean canSupportMarkupKind(String kind)
ISharedSettingsRequesttrue if the client can support the given Markup kind for
documentation and false otherwise.canSupportMarkupKind in interface ISharedSettingsRequestkind - the markup kindtrue if the client can support the given Markup kind for
documentation and false otherwise.public Integer getDataPropertyAsInt(String fieldName)
ICompletionItemResolverRequestgetDataPropertyAsInt in interface ICompletionItemResolverRequestfieldName - the name of the field to retrieve the data frompublic Boolean getDataPropertyAsBoolean(String fieldName)
ICompletionItemResolverRequestgetDataPropertyAsBoolean in interface ICompletionItemResolverRequestpublic <T> T getComponent(Class clazz)
IComponentProvidergetComponent in interface IComponentProviderclazz - class of the component.public DOMDocument getDocument()
ICompletionItemResolverRequestgetDocument in interface ICompletionItemResolverRequestpublic SharedSettings getSharedSettings()
ISharedSettingsRequestgetSharedSettings in interface ISharedSettingsRequestpublic boolean isResolveDocumentationSupported()
ICompletionItemResolverRequestisResolveDocumentationSupported in interface ICompletionItemResolverRequestpublic boolean isResolveAdditionalTextEditsSupported()
ICompletionItemResolverRequestisResolveAdditionalTextEditsSupported in interface ICompletionItemResolverRequestpublic Integer getCompletionOffset()
ICompletionItemResolverRequestgetCompletionOffset in interface ICompletionItemResolverRequestCopyright © 2022. All rights reserved.