Skip to content

onTwoslashError returning string is ignored instead of replacing the code #1069

@Karibash

Description

@Karibash

Validations

Describe the bug

According to the JSDoc, if onTwoslashError returns a string, the returned string should replace the corresponding code block.
However, in the actual implementation, the returned string is ignored, and the code is not replaced.

Expected Behavior

The returned string should replace the code block where the error occurred, as documented in the JSDoc.

Actual Behavior

The returned string is ignored, and the original code remains unchanged.

Reproduction

none

Contributes

  • I am willing to submit a PR to fix this issue
  • I am willing to submit a PR with failing tests

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions