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()
ICompletionItemResolverRequest
getUnresolved
in interface ICompletionItemResolverRequest
public String getParticipantId()
ICompletionItemResolverRequest
getParticipantId
in interface ICompletionItemResolverRequest
public String getDataProperty(String fieldName)
ICompletionItemResolverRequest
getDataProperty
in interface ICompletionItemResolverRequest
fieldName
- the name of the field to retrieve the data frompublic boolean canSupportMarkupKind(String kind)
ISharedSettingsRequest
true
if the client can support the given Markup kind for
documentation and false
otherwise.canSupportMarkupKind
in interface ISharedSettingsRequest
kind
- the markup kindtrue
if the client can support the given Markup kind for
documentation and false
otherwise.public Integer getDataPropertyAsInt(String fieldName)
ICompletionItemResolverRequest
getDataPropertyAsInt
in interface ICompletionItemResolverRequest
fieldName
- the name of the field to retrieve the data frompublic Boolean getDataPropertyAsBoolean(String fieldName)
ICompletionItemResolverRequest
getDataPropertyAsBoolean
in interface ICompletionItemResolverRequest
public <T> T getComponent(Class clazz)
IComponentProvider
getComponent
in interface IComponentProvider
clazz
- class of the component.public DOMDocument getDocument()
ICompletionItemResolverRequest
getDocument
in interface ICompletionItemResolverRequest
public SharedSettings getSharedSettings()
ISharedSettingsRequest
getSharedSettings
in interface ISharedSettingsRequest
public boolean isResolveDocumentationSupported()
ICompletionItemResolverRequest
isResolveDocumentationSupported
in interface ICompletionItemResolverRequest
public boolean isResolveAdditionalTextEditsSupported()
ICompletionItemResolverRequest
isResolveAdditionalTextEditsSupported
in interface ICompletionItemResolverRequest
public Integer getCompletionOffset()
ICompletionItemResolverRequest
getCompletionOffset
in interface ICompletionItemResolverRequest
Copyright © 2022. All rights reserved.