Package org.eclipse.lemminx.settings
Class XMLWorkspaceSettings
java.lang.Object
org.eclipse.lemminx.settings.XMLWorkspaceSettings
A wrapper around LSP
WorkspaceClientCapabilities.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.eclipse.lsp4j.WorkspaceClientCapabilitiesbooleanReturns true if the client can support the given resource operation kind and false otherwise.booleanReturns true if the client supports LSP 3.18 SnippetTextEdit in workspace edits (capabilityworkspace.workspaceEdit.snippetEditSupport) and false otherwise.voidsetCapabilities(org.eclipse.lsp4j.WorkspaceClientCapabilities workspace)
-
Constructor Details
-
XMLWorkspaceSettings
public XMLWorkspaceSettings()
-
-
Method Details
-
setCapabilities
public void setCapabilities(org.eclipse.lsp4j.WorkspaceClientCapabilities workspace) -
getCapabilities
public org.eclipse.lsp4j.WorkspaceClientCapabilities getCapabilities() -
isResourceOperationSupported
Returns true if the client can support the given resource operation kind and false otherwise.- Parameters:
kind- the resource operation kind.- Returns:
- true if the client can support the given resource operation kind and false otherwise.
-
isSnippetEditSupported
public boolean isSnippetEditSupported()Returns true if the client supports LSP 3.18 SnippetTextEdit in workspace edits (capabilityworkspace.workspaceEdit.snippetEditSupport) and false otherwise.When supported, code actions can use snippet tabstops (
$1,$0) to position the cursor after applying the edit, instead of leaving it at the end of the inserted text.- Returns:
- true if the client supports SnippetTextEdit and false otherwise.
-