Skip to content

nes: xtab: cleanup: split response format parsing implementation out of XtabProvider#308753

Merged
ulugbekna merged 2 commits intomainfrom
ulugbekna/xtab-cleanup-and-split-strategies-2
Apr 9, 2026
Merged

nes: xtab: cleanup: split response format parsing implementation out of XtabProvider#308753
ulugbekna merged 2 commits intomainfrom
ulugbekna/xtab-cleanup-and-split-strategies-2

Conversation

@ulugbekna
Copy link
Copy Markdown
Contributor

No description provided.

@ulugbekna ulugbekna enabled auto-merge (squash) April 9, 2026 10:58
Copilot AI review requested due to automatic review settings April 9, 2026 10:58
@ulugbekna ulugbekna self-assigned this Apr 9, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Refactors Xtab response parsing by extracting response-format specific parsing/stream handling out of XtabProvider into a dedicated module, and adds unit tests for the new handlers.

Changes:

  • Introduces responseFormatHandlers.ts to centralize parsing for EditWindowOnly, CodeBlock, EditIntent formats, and UnifiedWithXml.
  • Updates xtabProvider.ts to dispatch response parsing via the new handlers and unify fetch-failure handling.
  • Adds a new Vitest suite covering the new handler behaviors and edge cases.
Show a summary per file
File Description
extensions/copilot/src/extension/xtab/test/node/responseFormatHandlers.spec.ts Adds targeted unit tests for each response-format handler and UnifiedWithXml sub-modes.
extensions/copilot/src/extension/xtab/node/xtabProvider.ts Replaces inlined parsing logic with handler dispatch and centralizes fetch-failure checks.
extensions/copilot/src/extension/xtab/node/responseFormatHandlers.ts New module implementing response-format parsing and streaming generators for UnifiedWithXml.

Copilot's findings

  • Files reviewed: 3/3 changed files
  • Comments generated: 1

@ulugbekna ulugbekna merged commit 08f44fb into main Apr 9, 2026
27 checks passed
@ulugbekna ulugbekna deleted the ulugbekna/xtab-cleanup-and-split-strategies-2 branch April 9, 2026 12:04
@vs-code-engineering vs-code-engineering bot added this to the 1.116.0 milestone Apr 9, 2026
joshspicer pushed a commit that referenced this pull request Apr 9, 2026
…of XtabProvider (#308753)

* nes: fix: check chatResponseFailure consistently before yielding edits

* nes: xtab: cleanup: split response format parsing implementation out of XtabProvider
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants