Package org.eclipse.lsp4j
Class DiagnosticRegistrationOptions
- java.lang.Object
-
- org.eclipse.lsp4j.TextDocumentRegistrationOptions
-
- org.eclipse.lsp4j.AbstractTextDocumentRegistrationAndWorkDoneProgressOptions
-
- org.eclipse.lsp4j.DiagnosticRegistrationOptions
-
- All Implemented Interfaces:
WorkDoneProgressOptions
public class DiagnosticRegistrationOptions extends AbstractTextDocumentRegistrationAndWorkDoneProgressOptions
Diagnostic registration options.Since 3.17.0
-
-
Constructor Summary
Constructors Constructor Description DiagnosticRegistrationOptions()DiagnosticRegistrationOptions(boolean interFileDependencies, boolean workspaceDiagnostics)DiagnosticRegistrationOptions(java.lang.String id)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)java.lang.StringgetId()The id used to register the request.java.lang.StringgetIdentifier()An optional identifier under which the diagnostics are managed by the client.inthashCode()booleanisInterFileDependencies()Whether the language has inter file dependencies meaning that editing code in one file can result in a different diagnostic set in another file.booleanisWorkspaceDiagnostics()The server provides support for workspace diagnostics as well.voidsetId(java.lang.String id)The id used to register the request.voidsetIdentifier(java.lang.String identifier)An optional identifier under which the diagnostics are managed by the client.voidsetInterFileDependencies(boolean interFileDependencies)Whether the language has inter file dependencies meaning that editing code in one file can result in a different diagnostic set in another file.voidsetWorkspaceDiagnostics(boolean workspaceDiagnostics)The server provides support for workspace diagnostics as well.java.lang.StringtoString()-
Methods inherited from class org.eclipse.lsp4j.AbstractTextDocumentRegistrationAndWorkDoneProgressOptions
getWorkDoneProgress, setWorkDoneProgress
-
Methods inherited from class org.eclipse.lsp4j.TextDocumentRegistrationOptions
getDocumentSelector, setDocumentSelector
-
-
-
-
Constructor Detail
-
DiagnosticRegistrationOptions
public DiagnosticRegistrationOptions()
-
DiagnosticRegistrationOptions
public DiagnosticRegistrationOptions(java.lang.String id)
-
DiagnosticRegistrationOptions
public DiagnosticRegistrationOptions(boolean interFileDependencies, boolean workspaceDiagnostics)
-
-
Method Detail
-
getId
public java.lang.String getId()
The id used to register the request. The id can be used to deregister the request again. See alsoRegistration.id.
-
setId
public void setId(java.lang.String id)
The id used to register the request. The id can be used to deregister the request again. See alsoRegistration.id.
-
getIdentifier
public java.lang.String getIdentifier()
An optional identifier under which the diagnostics are managed by the client.
-
setIdentifier
public void setIdentifier(java.lang.String identifier)
An optional identifier under which the diagnostics are managed by the client.
-
isInterFileDependencies
public boolean isInterFileDependencies()
Whether the language has inter file dependencies meaning that editing code in one file can result in a different diagnostic set in another file. Inter file dependencies are common for most programming languages and typically uncommon for linters.
-
setInterFileDependencies
public void setInterFileDependencies(boolean interFileDependencies)
Whether the language has inter file dependencies meaning that editing code in one file can result in a different diagnostic set in another file. Inter file dependencies are common for most programming languages and typically uncommon for linters.
-
isWorkspaceDiagnostics
public boolean isWorkspaceDiagnostics()
The server provides support for workspace diagnostics as well.
-
setWorkspaceDiagnostics
public void setWorkspaceDiagnostics(boolean workspaceDiagnostics)
The server provides support for workspace diagnostics as well.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classAbstractTextDocumentRegistrationAndWorkDoneProgressOptions
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classAbstractTextDocumentRegistrationAndWorkDoneProgressOptions
-
hashCode
public int hashCode()
- Overrides:
hashCodein classAbstractTextDocumentRegistrationAndWorkDoneProgressOptions
-
-