Creates and displays a Webview panel where users can review a faulty code snippet, receive a hint, edit the code to correct it, and submit their fix for evaluation.

Tracks user interactions, including time taken to submit a fix, and logs the outcome (correct or incorrect) to the backend for analytics.

  • Parameters

    • wrongCode: string

      The original code snippet containing a potential issue.

    • hint: string

      A textual hint provided to assist the user in fixing the code.

    • suggestionContext: SuggestionContext

      Metadata about the suggestion, used for logging and analytics.

    Returns void