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 boolean
equals(java.lang.Object obj)
java.lang.String
getId()
The id used to register the request.java.lang.String
getIdentifier()
An optional identifier under which the diagnostics are managed by the client.int
hashCode()
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.boolean
isWorkspaceDiagnostics()
The server provides support for workspace diagnostics as well.void
setId(java.lang.String id)
The id used to register the request.void
setIdentifier(java.lang.String identifier)
An optional identifier under which the diagnostics are managed by the client.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.void
setWorkspaceDiagnostics(boolean workspaceDiagnostics)
The server provides support for workspace diagnostics as well.java.lang.String
toString()
-
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:
toString
in classAbstractTextDocumentRegistrationAndWorkDoneProgressOptions
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classAbstractTextDocumentRegistrationAndWorkDoneProgressOptions
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classAbstractTextDocumentRegistrationAndWorkDoneProgressOptions
-
-