Class XMLCapabilityManager
java.lang.Object
org.eclipse.lemminx.settings.capabilities.XMLCapabilityManager
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
ConstructorsConstructorDescriptionXMLCapabilityManager(org.eclipse.lsp4j.services.LanguageClient languageClient, XMLTextDocumentService textDocumentService, XMLWorkspaceService xmlWorkspaceService) -
Method Summary
Modifier and TypeMethodDescriptionvoidRegisters 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 clientCapabilitiesvoidRegisters(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 Details
-
XMLCapabilityManager
public XMLCapabilityManager(org.eclipse.lsp4j.services.LanguageClient languageClient, XMLTextDocumentService textDocumentService, XMLWorkspaceService xmlWorkspaceService)
-
-
Method Details
-
setClientCapabilities
public void setClientCapabilities(org.eclipse.lsp4j.ClientCapabilities clientCapabilities, ExtendedClientCapabilities extendedClientCapabilities) Creates and sets aClientCapabilitiesWrapperinstance formed from clientCapabilities- Parameters:
clientCapabilities-extendedClientCapabilities-
-
getClientCapabilities
-
toggleCapability
-
unregisterCapability
-
registerCapability
-
registerCapability
-
initializeCapabilities
public void initializeCapabilities()Registers all dynamic capabilities that the server does not support client side preferences turning on/off -
registerExecuteCommand
-
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 -
getRegisteredCapabilities
-