Package org.eclipse.lemminx.settings
Class XMLCodeLensSettings
java.lang.Object
org.eclipse.lemminx.settings.XMLCodeLensSettings
XML CodeLens settings
- Author:
- Angelo ZERR
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns true if codelens service is enabled and false otherwise.booleanisSupportedByClient(String kind) Returns true if the given code lens kind is supported by the client and false otherwise.voidmerge(XMLCodeLensSettings newSettings) voidsetCodeLens(ExtendedCodeLensCapabilities codeLens) Update the codelens client capabilities.voidsetEnabled(boolean enabled) Set true if codelens service is enabled and false otherwise.
-
Constructor Details
-
XMLCodeLensSettings
public XMLCodeLensSettings()
-
-
Method Details
-
isEnabled
public boolean isEnabled()Returns true if codelens service is enabled and false otherwise.- Returns:
- true if codelens service is enabled and false otherwise.
-
setEnabled
public void setEnabled(boolean enabled) Set true if codelens service is enabled and false otherwise.- Parameters:
enabled-
-
isSupportedByClient
Returns true if the given code lens kind is supported by the client and false otherwise.- Parameters:
kind- code lens kind- Returns:
- true if the given code lens kind is supported by the client and false otherwise.
-
setCodeLens
Update the codelens client capabilities.- Parameters:
codelens- client capabilities
-
merge
-