final class Diagnostics extends AnyRef
Converts diagnostics from the build server and Scalameta parser into LSP diagnostics.
BSP diagnostics have different semantics from LSP diagnostics with regards to how they
are published. BSP diagnostics can be accumulated when reset=false, meaning the client
(Metals) is responsible for aggregating multiple build/publishDiagnostics notifications
into a single textDocument/publishDiagnostics notification.
Another challenge is to consolidate syntax errors on every keystroke with type errors on batch compile because positions get stale in batch compile errors as you type new syntax errors. To solve this problem we use token edit distance the same way we support goto definition in stale buffers.
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- Diagnostics
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
- new Diagnostics(buildTargets: BuildTargets, buffers: Buffers, languageClient: LanguageClient, statistics: StatisticsConfig, config: () ⇒ UserConfiguration)
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()
- def didChange(path: io.AbsolutePath): Unit
- def didDelete(path: io.AbsolutePath): Unit
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
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()
- def hasSyntaxError(path: io.AbsolutePath): Boolean
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
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()
- def onBuildPublishDiagnostics(params: PublishDiagnosticsParams): Unit
- def onFinishCompileBuildTarget(target: BuildTargetIdentifier): Unit
- def onNoSyntaxError(path: io.AbsolutePath): Unit
- def onPublishDiagnostics(path: io.AbsolutePath, diagnostics: Seq[Diagnostic], isReset: Boolean): Unit
- def onStartCompileBuildTarget(target: BuildTargetIdentifier): Unit
- def onSyntaxError(path: io.AbsolutePath, d: Diagnostic): Unit
- def onSyntaxError(path: io.AbsolutePath, pos: meta.Position, shortMessage: String): Unit
- def reset(): Unit
- def resetAmmoniteScripts(): Unit
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
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()