public class XMLCompletionSettings extends Object
CompletionCapabilities
.Constructor and Description |
---|
XMLCompletionSettings() |
XMLCompletionSettings(boolean autoCloseTags,
boolean autoCloseRemovesContent) |
Modifier and Type | Method and Description |
---|---|
org.eclipse.lsp4j.CompletionCapabilities |
getCompletionCapabilities() |
boolean |
isAutoCloseRemovesContent()
Returns true if turning a start tag into a self closing tag should remove the content of the element and false otherwise
|
boolean |
isAutoCloseTags()
If tag should be autoclosed with an end tag.
|
boolean |
isCompletionSnippetsSupported()
Returns
true if the client support snippet and
false otherwise. |
void |
merge(XMLCompletionSettings newCompletion)
Merge only the given completion settings (and not the capability) in the
settings.
|
void |
setAutoCloseRemovesContent(boolean autoCloseRemovesContent)
If turning a start tag into a self closing tag should remove the content of the element
|
void |
setAutoCloseTags(boolean autoCloseTags)
Tag should be autoclosed with an end tag.
|
void |
setCapabilities(org.eclipse.lsp4j.CompletionCapabilities completionCapabilities) |
public XMLCompletionSettings(boolean autoCloseTags, boolean autoCloseRemovesContent)
public XMLCompletionSettings()
public void setCapabilities(org.eclipse.lsp4j.CompletionCapabilities completionCapabilities)
public org.eclipse.lsp4j.CompletionCapabilities getCompletionCapabilities()
public void setAutoCloseTags(boolean autoCloseTags)
autoCloseTags
- public boolean isAutoCloseTags()
public void setAutoCloseRemovesContent(boolean autoCloseRemovesContent)
autoCloseRemovesContent
- public boolean isAutoCloseRemovesContent()
public boolean isCompletionSnippetsSupported()
true
if the client support snippet and
false
otherwise.true
if the client support snippet and
false
otherwise.public void merge(XMLCompletionSettings newCompletion)
newCompletion
- the new settings to merge.Copyright © 2022. All rights reserved.