Uploaded image for project: 'VS Code Extension'
  1. VS Code Extension
  2. VSCODE-639

Replace Regex matching for code blocks

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 1.10.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Not Needed
    • Developer Tools

      Regex matching for code blocks in copilot responses is a bit convoluted and also requires that we buffer the entire code block before we can stream it. Since we're only ever matching on exact strings and not taking advantage of fancier regex functionality, we can replace the matching with a simpler algorithm that also processes the fragments as a stream with no buffering.

            Assignee:
            nikola.irinchev@mongodb.com Nikola Irinchev
            Reporter:
            nikola.irinchev@mongodb.com Nikola Irinchev
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: