Class XMLWorkspaceSettings

java.lang.Object
org.eclipse.lemminx.settings.XMLWorkspaceSettings

public class XMLWorkspaceSettings extends Object
A wrapper around LSP WorkspaceClientCapabilities.
  • Constructor Details

    • XMLWorkspaceSettings

      public XMLWorkspaceSettings()
  • Method Details

    • setCapabilities

      public void setCapabilities(org.eclipse.lsp4j.WorkspaceClientCapabilities workspace)
    • getCapabilities

      public org.eclipse.lsp4j.WorkspaceClientCapabilities getCapabilities()
    • isResourceOperationSupported

      public boolean isResourceOperationSupported(String kind)
      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 (capability workspace.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.