Class WorkspaceEditCapabilities


  • public class WorkspaceEditCapabilities
    extends java.lang.Object
    Capabilities specific to WorkspaceEdits
    • Constructor Detail

      • WorkspaceEditCapabilities

        public WorkspaceEditCapabilities()
      • WorkspaceEditCapabilities

        @Deprecated
        public WorkspaceEditCapabilities​(java.lang.Boolean documentChanges)
        Deprecated.
    • Method Detail

      • getDocumentChanges

        public java.lang.Boolean getDocumentChanges()
        The client supports versioned document changes in WorkspaceEdits
      • setDocumentChanges

        public void setDocumentChanges​(java.lang.Boolean documentChanges)
        The client supports versioned document changes in WorkspaceEdits
      • getResourceOperations

        public java.util.List<java.lang.String> getResourceOperations()
        The resource operations the client supports. Clients should at least support 'create', 'rename' and 'delete' files and folders.

        See ResourceOperationKind for allowed values.

        Since 3.13.0

      • setResourceOperations

        public void setResourceOperations​(java.util.List<java.lang.String> resourceOperations)
        The resource operations the client supports. Clients should at least support 'create', 'rename' and 'delete' files and folders.

        See ResourceOperationKind for allowed values.

        Since 3.13.0

      • getFailureHandling

        public java.lang.String getFailureHandling()
        The failure handling strategy of a client if applying the workspace edit fails.

        See FailureHandlingKind for allowed values.

        Since 3.13.0

      • setFailureHandling

        public void setFailureHandling​(java.lang.String failureHandling)
        The failure handling strategy of a client if applying the workspace edit fails.

        See FailureHandlingKind for allowed values.

        Since 3.13.0

      • getNormalizesLineEndings

        public java.lang.Boolean getNormalizesLineEndings()
        Whether the client normalizes line endings to the client specific setting.

        If set to true the client will normalize line ending characters in a workspace edit to the client specific new line character(s).

        Since 3.16.0

      • setNormalizesLineEndings

        public void setNormalizesLineEndings​(java.lang.Boolean normalizesLineEndings)
        Whether the client normalizes line endings to the client specific setting.

        If set to true the client will normalize line ending characters in a workspace edit to the client specific new line character(s).

        Since 3.16.0

      • getChangeAnnotationSupport

        public WorkspaceEditChangeAnnotationSupportCapabilities getChangeAnnotationSupport()
        Whether the client in general supports change annotations on text edits, create file, rename file and delete file changes.

        Since 3.16.0

      • setChangeAnnotationSupport

        public void setChangeAnnotationSupport​(WorkspaceEditChangeAnnotationSupportCapabilities changeAnnotationSupport)
        Whether the client in general supports change annotations on text edits, create file, rename file and delete file changes.

        Since 3.16.0

      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object