Skip to content
This repository was archived by the owner on May 20, 2026. It is now read-only.

nes: logContext: show correct proposed edits#1045

Merged
ulugbekna merged 1 commit into
mainfrom
ulugbekna/nes-show-correct-proposed-edit-logContext
Oct 1, 2025
Merged

nes: logContext: show correct proposed edits#1045
ulugbekna merged 1 commit into
mainfrom
ulugbekna/nes-show-correct-proposed-edit-logContext

Conversation

@ulugbekna

Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI review requested due to automatic review settings September 15, 2025 18:54
@ulugbekna ulugbekna enabled auto-merge September 15, 2025 18:54
@ulugbekna ulugbekna self-assigned this Sep 15, 2025

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull Request Overview

This pull request fixes logging to display the correct proposed edits in the log context. The main change involves moving the call to logContext.setResult() to occur before any early returns so that the proposed edit is properly logged even when the operation doesn't complete normally.

Key changes:

  • Moved logContext.setResult() call earlier in the flow to ensure proposed edits are logged
  • Removed unused getBacktickSection method and its associated tests
  • Refactored determinePromptingStrategy method to inline parameter fetching

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
src/extension/inlineEdits/node/nextEditProvider.ts Moved logContext.setResult() call to ensure proposed edits are logged before early returns
src/extension/xtab/node/xtabProvider.ts Removed unused getBacktickSection method and refactored determinePromptingStrategy to inline config fetching
src/extension/xtab/test/node/xtabProvider.spec.ts Removed tests for the deleted getBacktickSection method

@vs-code-engineering vs-code-engineering Bot added this to the September 2025 milestone Sep 15, 2025
bpasero
bpasero previously approved these changes Sep 15, 2025
@bpasero

bpasero commented Sep 15, 2025

Copy link
Copy Markdown
Contributor

@ulugbekna red CI

@ulugbekna ulugbekna force-pushed the ulugbekna/nes-show-correct-proposed-edit-logContext branch from 0b971bc to 33c4b15 Compare October 1, 2025 12:13
@ulugbekna ulugbekna added this pull request to the merge queue Oct 1, 2025
Merged via the queue into main with commit bc246ae Oct 1, 2025
17 checks passed
@ulugbekna ulugbekna deleted the ulugbekna/nes-show-correct-proposed-edit-logContext branch October 1, 2025 12:32
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants