Class Diagnostic

java.lang.Object
com.illumon.iris.web.shared.ide.lsp.Diagnostic
All Implemented Interfaces:
Serializable

@JsType(namespace="iris.lsp") public class Diagnostic extends Object implements Serializable
Represents a diagnostic message sent to the client, to mark info/warn/error in the source.

Original definition in current lsp documentation, https://microsoft.github.io/language-server-protocol/specification (text search Diagnostic; couldn't find good intra-document name='d links)

All field documentation here is copy-pasted from original source.

See Also:
  • Constructor Details

    • Diagnostic

      @JsIgnore public Diagnostic()
    • Diagnostic

      @JsConstructor public Diagnostic(@JsOptional jsinterop.base.JsPropertyMap<Object> source)
  • Method Details

    • getRange

      @JsProperty public DocumentRange getRange()
    • setRange

      @JsProperty public void setRange(DocumentRange range)
    • getSeverity

      @JsProperty public Double getSeverity()
    • setSeverity

      @JsProperty public void setSeverity(Double severity)
    • getCode

      @JsProperty public Double getCode()
    • code

      @JsIgnore public void code(int code)
    • setCode

      @JsProperty public void setCode(Double code)
    • getSource

      @JsProperty public String getSource()
    • setSource

      @JsProperty public void setSource(String source)
    • getMessage

      @JsProperty public String getMessage()
    • setMessage

      @JsProperty public void setMessage(String message)
    • getRelatedInformation

      @JsProperty public DiagnosticRelatedInformation[] getRelatedInformation()
    • setRelatedInformation

      @JsProperty public void setRelatedInformation(DiagnosticRelatedInformation[] relatedInformation)