public onBuildLogMessage()

in src/test-runner/run-tracker.ts [226:251]


  public onBuildLogMessage(params: LogMessageParams) {
    if (params.message.endsWith('\\')) {
      // Combine messages that are continued on the following line.
      this.run.appendOutput(params.message.slice(0, -1))
    } else {
      this.run.appendOutput(params.message)
      this.run.appendOutput('\n\r')
    }

    // During debug runs, watch each message for indication of debug readiness.
    // If the message matches the configured pattern, start the debug session.
    if (
      this.debugInfo?.launchConfig &&
      this.debugInfo.readyPattern?.test(params.message) &&
      !this.hasDebugSessionBeenInitiated
    ) {
      this.hasDebugSessionBeenInitiated = true
      this.run.appendOutput(
        `Starting remote debug session [Launch config: '${this.debugInfo.launchConfig.name}']\r\n`
      )
      vscode.debug.startDebugging(
        vscode.workspace.workspaceFolders?.[0],
        this.debugInfo.launchConfig
      )
    }
  }