Package org.eclipse.lemminx.settings
Class XMLCompletionSettings
- java.lang.Object
-
- org.eclipse.lemminx.settings.XMLCompletionSettings
-
public class XMLCompletionSettings extends Object
A wrapper around LSPCompletionCapabilities.
-
-
Constructor Summary
Constructors Constructor Description XMLCompletionSettings()XMLCompletionSettings(boolean autoCloseTags, boolean autoCloseRemovesContent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.eclipse.lsp4j.CompletionCapabilitiesgetCompletionCapabilities()booleanisAutoCloseRemovesContent()Returns true if turning a start tag into a self closing tag should remove the content of the element and false otherwisebooleanisAutoCloseTags()If tag should be autoclosed with an end tag.booleanisCompletionListItemDefaultsSupport(String field)Returnstrueif the client support completion list itemDefaults given the field andfalseotherwise.booleanisCompletionResolveSupported(CompletionResolveSupportProperty property)Returns true if the client supports resolving the givenCompletionResolveSupportPropertyproperty in completionItem/resolve and false otherwise.booleanisCompletionSnippetsSupported()Returnstrueif 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)
-
-
-
Method Detail
-
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
public boolean isCompletionResolveSupported(CompletionResolveSupportProperty property)
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
-
isCompletionListItemDefaultsSupport
public boolean isCompletionListItemDefaultsSupport(String field)
Returnstrueif the client support completion list itemDefaults given the field andfalseotherwise.- Parameters:
field- the completionList itemDefaults field- Returns:
trueif the client support completion list itemDefaults given the field andfalseotherwise.
-
merge
public void merge(XMLCompletionSettings newCompletion)
Merge only the given completion settings (and not the capability) in the settings.- Parameters:
newCompletion- the new settings to merge.
-
-