Package org.eclipse.lemminx.settings
Class XMLCompletionSettings
java.lang.Object
org.eclipse.lemminx.settings.XMLCompletionSettings
A wrapper around LSP
CompletionCapabilities.-
Constructor Summary
ConstructorsConstructorDescriptionXMLCompletionSettings(boolean autoCloseTags, boolean autoCloseRemovesContent) -
Method Summary
Modifier and TypeMethodDescriptionorg.eclipse.lsp4j.CompletionCapabilitiesbooleanReturns true if turning a start tag into a self closing tag should remove the content of the element and false otherwisebooleanIf tag should be autoclosed with an end tag.booleanReturns true if the client supports resolving the givenCompletionResolveSupportPropertyproperty in completionItem/resolve and false otherwise.booleanReturnstrueif the client support snippet andfalseotherwise.voidmerge(XMLCompletionSettings newCompletion) Merge only the given completion settings (and not the capability) in the settings.voidsetAutoCloseRemovesContent(boolean autoCloseRemovesContent) If turning a start tag into a self closing tag should remove the content of the elementvoidsetAutoCloseTags(boolean autoCloseTags) Tag should be autoclosed with an end tag.voidsetCapabilities(org.eclipse.lsp4j.CompletionCapabilities completionCapabilities)
-
Constructor Details
-
XMLCompletionSettings
public XMLCompletionSettings(boolean autoCloseTags, boolean autoCloseRemovesContent) -
XMLCompletionSettings
public XMLCompletionSettings()
-
-
Method Details
-
setCapabilities
public void setCapabilities(org.eclipse.lsp4j.CompletionCapabilities completionCapabilities) -
getCompletionCapabilities
public org.eclipse.lsp4j.CompletionCapabilities getCompletionCapabilities() -
setAutoCloseTags
public void setAutoCloseTags(boolean autoCloseTags) Tag should be autoclosed with an end tag.- Parameters:
autoCloseTags-
-
isAutoCloseTags
public boolean isAutoCloseTags()If tag should be autoclosed with an end tag.- Returns:
-
setAutoCloseRemovesContent
public void setAutoCloseRemovesContent(boolean autoCloseRemovesContent) If turning a start tag into a self closing tag should remove the content of the element- Parameters:
autoCloseRemovesContent-
-
isAutoCloseRemovesContent
public boolean isAutoCloseRemovesContent()Returns true if turning a start tag into a self closing tag should remove the content of the element and false otherwise- Returns:
- true if turning a start tag into a self closing tag should remove the content of the element and false otherwise
-
isCompletionSnippetsSupported
public boolean isCompletionSnippetsSupported()Returnstrueif the client support snippet andfalseotherwise.- Returns:
trueif the client support snippet andfalseotherwise.
-
isCompletionResolveSupported
Returns true if the client supports resolving the givenCompletionResolveSupportPropertyproperty in completionItem/resolve and false otherwise.- Returns:
- true if the client supports resolving the given
CompletionResolveSupportPropertyproperty in completionItem/resolve and false otherwise
-
merge
Merge only the given completion settings (and not the capability) in the settings.- Parameters:
newCompletion- the new settings to merge.
-