Class PublishDiagnosticsCapabilities


  • public class PublishDiagnosticsCapabilities
    extends java.lang.Object
    Capabilities specific to `textDocument/publishDiagnostics`.
    • Constructor Detail

      • PublishDiagnosticsCapabilities

        public PublishDiagnosticsCapabilities()
      • PublishDiagnosticsCapabilities

        public PublishDiagnosticsCapabilities​(java.lang.Boolean relatedInformation)
      • PublishDiagnosticsCapabilities

        public PublishDiagnosticsCapabilities​(java.lang.Boolean relatedInformation,
                                              DiagnosticsTagSupport tagSupport)
      • PublishDiagnosticsCapabilities

        public PublishDiagnosticsCapabilities​(java.lang.Boolean relatedInformation,
                                              DiagnosticsTagSupport tagSupport,
                                              java.lang.Boolean versionSupport)
    • Method Detail

      • getRelatedInformation

        public java.lang.Boolean getRelatedInformation()
        Whether the client accepts diagnostics with related information.
      • setRelatedInformation

        public void setRelatedInformation​(java.lang.Boolean relatedInformation)
        Whether the client accepts diagnostics with related information.
      • getTagSupport

        public org.eclipse.lsp4j.jsonrpc.messages.Either<java.lang.Boolean,​DiagnosticsTagSupport> getTagSupport()
        Client supports the tag property to provide meta data about a diagnostic. Clients supporting tags have to handle unknown tags gracefully.

        This property had been added and implemented as boolean before it was added to the specification as DiagnosticsTagSupport. In order to keep this implementation compatible with intermediate clients (including vscode-language-client < 6.0.0) we add an either type here.

        Since 3.15

      • setTagSupport

        public void setTagSupport​(org.eclipse.lsp4j.jsonrpc.messages.Either<java.lang.Boolean,​DiagnosticsTagSupport> tagSupport)
        Client supports the tag property to provide meta data about a diagnostic. Clients supporting tags have to handle unknown tags gracefully.

        This property had been added and implemented as boolean before it was added to the specification as DiagnosticsTagSupport. In order to keep this implementation compatible with intermediate clients (including vscode-language-client < 6.0.0) we add an either type here.

        Since 3.15

      • setTagSupport

        public void setTagSupport​(java.lang.Boolean tagSupport)
      • getVersionSupport

        public java.lang.Boolean getVersionSupport()
        Whether the client interprets the version property of the `textDocument/publishDiagnostics` notification's parameter.

        Since 3.15.0

      • setVersionSupport

        public void setVersionSupport​(java.lang.Boolean versionSupport)
        Whether the client interprets the version property of the `textDocument/publishDiagnostics` notification's parameter.

        Since 3.15.0

      • getCodeDescriptionSupport

        public java.lang.Boolean getCodeDescriptionSupport()
        Client supports a codeDescription property

        Since 3.16.0

      • setCodeDescriptionSupport

        public void setCodeDescriptionSupport​(java.lang.Boolean codeDescriptionSupport)
        Client supports a codeDescription property

        Since 3.16.0

      • getDataSupport

        public java.lang.Boolean getDataSupport()
        Whether code action supports the Diagnostic.data property which is preserved between a `textDocument/publishDiagnostics` and `textDocument/codeAction` request.

        Since 3.16.0

      • setDataSupport

        public void setDataSupport​(java.lang.Boolean dataSupport)
        Whether code action supports the Diagnostic.data property which is preserved between a `textDocument/publishDiagnostics` and `textDocument/codeAction` request.

        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