class DebugProvider extends Cancelable with LogForwarder
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- DebugProvider
- LogForwarder
- Cancelable
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Instance Constructors
- new DebugProvider(workspace: io.AbsolutePath, buildTargets: BuildTargets, buildTargetClasses: BuildTargetClasses, compilations: Compilations, languageClient: MetalsLanguageClient, buildClient: MetalsBuildClient, index: OnDemandSymbolIndex, stacktraceAnalyzer: StacktraceAnalyzer, clientConfig: ClientConfiguration, semanticdbs: () => Semanticdbs, compilers: Compilers, statusBar: StatusBar, workDoneProgress: WorkDoneProgress, sourceMapper: SourceMapper, userConfig: () => UserConfiguration, testProvider: TestSuitesProvider)(implicit ec: ExecutionContext)
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 asSession(debugParams: DebugSessionParams)(implicit ec: ExecutionContext): Future[DebugSession]
- def buildMainClassParams(foundClasses: List[(ScalaMainClass, BuildTarget)], params: DebugUnresolvedMainClassParams)(implicit ec: ExecutionContext): Future[DebugSessionParams]
- lazy val buildTargetClassesFinder: BuildTargetClassesFinder
- def buildTestClassParams(targets: List[(String, BuildTarget)], params: DebugUnresolvedTestClassParams)(implicit ec: ExecutionContext): Future[DebugSessionParams]
- def cancel(): Unit
- Definition Classes
- DebugProvider → Cancelable
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
- def createDebugSession(target: BuildTargetIdentifier): Future[DebugSessionParams]
- def debugDiscovery(params: DebugDiscoveryParams)(implicit ec: ExecutionContext): Future[DebugSessionParams]
Given fully unresolved params this figures out the runType that was passed in and then discovers either the main methods for the build target the path belongs to or finds the tests for the current file or build target
- def ensureNoWorkspaceErrors(buildTargets: Seq[BuildTargetIdentifier])(implicit ec: ExecutionContext): Future[Unit]
When given the already formed params (most likely from a code lens) make sure the workspace doesn't have any errors which would cause the debug session to not actually work, but fail silently.
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def error(message: String): Unit
- Definition Classes
- DebugProvider → LogForwarder
- def findMainClassAndItsBuildTarget(params: DebugUnresolvedMainClassParams): Try[List[(ScalaMainClass, BuildTarget)]]
- def findTestClassAndItsBuildTarget(params: DebugUnresolvedTestClassParams): Try[List[(String, BuildTarget)]]
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- def info(message: String): Unit
- Definition Classes
- DebugProvider → LogForwarder
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def log(message: String): Unit
- Definition Classes
- LogForwarder
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- def retryAfterRebuild[A](previousResult: Try[A], f: () => Try[A])(implicit ec: ExecutionContext): Future[Try[A]]
- def runCommandDiscovery(unresolvedParams: DebugDiscoveryParams)(implicit ec: ExecutionContext): Future[DebugSessionParams]
Tries to discover the main class to run and returns DebugSessionParams that contains the shellCommand field.
Tries to discover the main class to run and returns DebugSessionParams that contains the shellCommand field. This is used so that clients can easily run the full command if they want.
- def start(parameters: DebugSessionParams)(implicit ec: ExecutionContext): Future[DebugServer]
- def startTestSuite(buildTarget: BuildTarget, request: ScalaTestSuitesDebugRequest)(implicit ec: ExecutionContext): Future[DebugSessionParams]
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- def warn(message: String): Unit
- Definition Classes
- LogForwarder
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
(Since version 9)