Interface ICompletionRequest
-
- All Superinterfaces:
IPositionRequest,ISharedSettingsRequest
public interface ICompletionRequest extends IPositionRequest, ISharedSettingsRequest
Completion request API.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetFilterForStartTagName(String tagName)StringgetInsertAttrValue(String value)org.eclipse.lsp4j.InsertTextFormatgetInsertTextFormat()Returns the proper insert text format according the support of snippet.org.eclipse.lsp4j.RangegetReplaceRange()Returns the replace range.org.eclipse.lsp4j.RangegetReplaceRangeForTagName()Returns the range for replacing a tag name for an existing DOM element.XMLGeneratorgetXMLGenerator()booleanisAutoCloseTags()Returns true if tag should be autoclosed with an end tag and false otherwise.booleanisCompletionSnippetsSupported()Returnstrueif the client support snippet andfalseotherwise.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.IPositionRequest
getComponent, getCurrentAttribute, getCurrentAttributeName, getCurrentTag, getLineIndentInfo, getNode, getOffset, getParentElement, getPosition, getXMLDocument
-
Methods inherited from interface org.eclipse.lemminx.services.extensions.ISharedSettingsRequest
canSupportMarkupKind, getSharedSettings
-
-
-
-
Method Detail
-
getReplaceRange
org.eclipse.lsp4j.Range getReplaceRange()
Returns the replace range.- Returns:
- the replace range.
-
getReplaceRangeForTagName
org.eclipse.lsp4j.Range getReplaceRangeForTagName()
Returns the range for replacing a tag name for an existing DOM element.- Returns:
- the range for replacing a tag name for an existing DOM element.
-
getXMLGenerator
XMLGenerator getXMLGenerator() throws BadLocationException
- Throws:
BadLocationException
-
isCompletionSnippetsSupported
boolean isCompletionSnippetsSupported()
Returnstrueif the client support snippet andfalseotherwise.- Returns:
trueif the client support snippet andfalseotherwise.
-
isAutoCloseTags
boolean isAutoCloseTags()
Returns true if tag should be autoclosed with an end tag and false otherwise.- Returns:
- true if tag should be autoclosed with an end tag and false otherwise.
-
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.
-
getInsertTextFormat
org.eclipse.lsp4j.InsertTextFormat getInsertTextFormat()
Returns the proper insert text format according the support of snippet.- Returns:
- the proper insert text format according the support of snippet.
-
-