case class Diagnostic(range: Range, message: String, severity: Option[DiagnosticSeverity] = None, code: Option[String] = None, source: Option[String] = None, relatedInformation: Seq[DiagnosticRelatedInformation] = Seq()) extends Product with Serializable
Represents a diagnostic, such as a compiler error or warning. Diagnostic objects are only valid in the scope of a resource.
- range
The range at which the message applies.
- message
The diagnostic's severity. Can be omitted. If omitted it is up to the client to interpret diagnostics as error, warning, info or hint.
- severity
The diagnostic's code, which might appear in the user interface.
- code
A human-readable string describing the source of this diagnostic, e.g. 'typescript' or 'super lint'.
- source
The diagnostic's message.
- relatedInformation
An array of related diagnostic information, e.g. when symbol-names within a scope collide all definitions can be marked via this property.
- Alphabetic
- By Inheritance
- Diagnostic
- Serializable
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
Diagnostic(range: Range, message: String, severity: Option[DiagnosticSeverity] = None, code: Option[String] = None, source: Option[String] = None, relatedInformation: Seq[DiagnosticRelatedInformation] = Seq())
- range
The range at which the message applies.
- message
The diagnostic's severity. Can be omitted. If omitted it is up to the client to interpret diagnostics as error, warning, info or hint.
- severity
The diagnostic's code, which might appear in the user interface.
- code
A human-readable string describing the source of this diagnostic, e.g. 'typescript' or 'super lint'.
- source
The diagnostic's message.
- relatedInformation
An array of related diagnostic information, e.g. when symbol-names within a scope collide all definitions can be marked via this property.
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
- val code: Option[String]
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val message: String
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- val range: Range
- val relatedInformation: Seq[DiagnosticRelatedInformation]
- val severity: Option[DiagnosticSeverity]
- val source: Option[String]
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()