Class XMLCapabilityManager
- java.lang.Object
-
- org.eclipse.lemminx.settings.capabilities.XMLCapabilityManager
-
public class XMLCapabilityManager extends Object
Manager for capability related tasks A capability is a service (Formatting, Highlighting, ...) that the server is able to provide. This server will tell the client about the services it is capable of.
-
-
Constructor Summary
Constructors Constructor Description XMLCapabilityManager(org.eclipse.lsp4j.services.LanguageClient languageClient, XMLTextDocumentService textDocumentService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ClientCapabilitiesWrappergetClientCapabilities()Set<String>getRegisteredCapabilities()voidinitializeCapabilities()Registers all dynamic capabilities that the server does not support client side preferences turning on/offvoidregisterCapability(String id, String method)voidregisterCapability(String id, String method, Object options)voidregisterExecuteCommand(List<String> commands)voidsetClientCapabilities(org.eclipse.lsp4j.ClientCapabilities clientCapabilities, ExtendedClientCapabilities extendedClientCapabilities)Creates and sets aClientCapabilitiesWrapperinstance formed from clientCapabilitiesvoidsyncDynamicCapabilitiesWithPreferences()Registers(indicates the servers ability to support the service) all capabilities that have the ability to be turned on/off on the client side through preferences.voidtoggleCapability(boolean enabled, String id, String capability, Object options)voidunregisterCapability(String id, String method)
-
-
-
Constructor Detail
-
XMLCapabilityManager
public XMLCapabilityManager(org.eclipse.lsp4j.services.LanguageClient languageClient, XMLTextDocumentService textDocumentService)
-
-
Method Detail
-
setClientCapabilities
public void setClientCapabilities(org.eclipse.lsp4j.ClientCapabilities clientCapabilities, ExtendedClientCapabilities extendedClientCapabilities)Creates and sets aClientCapabilitiesWrapperinstance formed from clientCapabilities- Parameters:
clientCapabilities-extendedClientCapabilities-
-
getClientCapabilities
public ClientCapabilitiesWrapper getClientCapabilities()
-
toggleCapability
public void toggleCapability(boolean enabled, String id, String capability, Object options)
-
initializeCapabilities
public void initializeCapabilities()
Registers all dynamic capabilities that the server does not support client side preferences turning on/off
-
syncDynamicCapabilitiesWithPreferences
public void syncDynamicCapabilitiesWithPreferences()
Registers(indicates the servers ability to support the service) all capabilities that have the ability to be turned on/off on the client side through preferences. In the case the preference is set to off/false this server will tell the cliet it does not support this capability. If a capability is not dynamic, it's handled byServerCapabilitiesInitializer
-
-