Package org.eclipse.lsp4j
Class PublishDiagnosticsCapabilities
- java.lang.Object
-
- org.eclipse.lsp4j.PublishDiagnosticsCapabilities
-
public class PublishDiagnosticsCapabilities extends java.lang.ObjectCapabilities specific to `textDocument/publishDiagnostics`.
-
-
Constructor Summary
Constructors Constructor Description PublishDiagnosticsCapabilities()PublishDiagnosticsCapabilities(java.lang.Boolean relatedInformation)PublishDiagnosticsCapabilities(java.lang.Boolean relatedInformation, DiagnosticsTagSupport tagSupport)PublishDiagnosticsCapabilities(java.lang.Boolean relatedInformation, DiagnosticsTagSupport tagSupport, java.lang.Boolean versionSupport)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)java.lang.BooleangetCodeDescriptionSupport()Client supports a codeDescription propertyjava.lang.BooleangetDataSupport()Whether code action supports theDiagnostic.dataproperty which is preserved between a `textDocument/publishDiagnostics` and `textDocument/codeAction` request.java.lang.BooleangetRelatedInformation()Whether the client accepts diagnostics with related information.org.eclipse.lsp4j.jsonrpc.messages.Either<java.lang.Boolean,DiagnosticsTagSupport>getTagSupport()Client supports the tag property to provide meta data about a diagnostic.java.lang.BooleangetVersionSupport()Whether the client interprets the version property of the `textDocument/publishDiagnostics` notification's parameter.inthashCode()voidsetCodeDescriptionSupport(java.lang.Boolean codeDescriptionSupport)Client supports a codeDescription propertyvoidsetDataSupport(java.lang.Boolean dataSupport)Whether code action supports theDiagnostic.dataproperty which is preserved between a `textDocument/publishDiagnostics` and `textDocument/codeAction` request.voidsetRelatedInformation(java.lang.Boolean relatedInformation)Whether the client accepts diagnostics with related information.voidsetTagSupport(java.lang.Boolean tagSupport)voidsetTagSupport(DiagnosticsTagSupport tagSupport)voidsetTagSupport(org.eclipse.lsp4j.jsonrpc.messages.Either<java.lang.Boolean,DiagnosticsTagSupport> tagSupport)Client supports the tag property to provide meta data about a diagnostic.voidsetVersionSupport(java.lang.Boolean versionSupport)Whether the client interprets the version property of the `textDocument/publishDiagnostics` notification's parameter.java.lang.StringtoString()
-
-
-
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)
-
setTagSupport
public void setTagSupport(DiagnosticsTagSupport 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 propertySince 3.16.0
-
setCodeDescriptionSupport
public void setCodeDescriptionSupport(java.lang.Boolean codeDescriptionSupport)
Client supports a codeDescription propertySince 3.16.0
-
getDataSupport
public java.lang.Boolean getDataSupport()
Whether code action supports theDiagnostic.dataproperty 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 theDiagnostic.dataproperty which is preserved between a `textDocument/publishDiagnostics` and `textDocument/codeAction` request.Since 3.16.0
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-