Skip to content

nes: fix: skip noop diffs from diff history#311932

Merged
ulugbekna merged 1 commit intomainfrom
ulugbekna/awkward-mockingbird
Apr 22, 2026
Merged

nes: fix: skip noop diffs from diff history#311932
ulugbekna merged 1 commit intomainfrom
ulugbekna/awkward-mockingbird

Conversation

@ulugbekna
Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI review requested due to automatic review settings April 22, 2026 16:03
@ulugbekna ulugbekna enabled auto-merge (squash) April 22, 2026 16:03
@ulugbekna ulugbekna self-assigned this Apr 22, 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

This PR updates the Copilot “NES” diff-history prompt generation to avoid emitting diff hunks that represent no actual change (i.e., old and new lines are identical), reducing noise in the prompt content.

Changes:

  • Skip “no-op” diff hunks where oldLines and newLines are identical.
  • Preserve existing behavior for skipping all-whitespace/empty-content hunks and returning null when a document has no remaining hunks.
Show a summary per file
File Description
extensions/copilot/src/extension/xtab/common/diffHistoryForPrompt.ts Filters out no-op hunks during doc diff construction so prompt diff history doesn’t include redundant entries.

Copilot's findings

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

@github-actions
Copy link
Copy Markdown
Contributor

blocks-ci screenshots changed

Replace the contents of test/componentFixtures/blocks-ci-screenshots.md with:

Updated blocks-ci-screenshots.md
<!-- auto-generated by CI — do not edit manually -->

#### editor/codeEditor/CodeEditor/Dark
![screenshot](https://hediet-screenshots.azurewebsites.net/images/cb32a3e854b5734fe5aaca2318f2e0a42ee821b05ea97883ea42c5ba95edb3c3)

#### editor/codeEditor/CodeEditor/Light
![screenshot](https://hediet-screenshots.azurewebsites.net/images/42624fbba5e0db7f32c224b5eb9c5dd3b08245697ae2e7d2a88be0d7c287129b)

#### editor/inlineChatZoneWidget/InlineChatZoneWidget/Dark
![screenshot](https://hediet-screenshots.azurewebsites.net/images/7d1a6d2346754115e77fc2b0b09a0e6fb6fd9fe22acbff6354813eefb8b45fc2)

#### editor/inlineChatZoneWidget/InlineChatZoneWidget/Light
![screenshot](https://hediet-screenshots.azurewebsites.net/images/11dbc075c584b7dde0f08314e98db121e420529ced6249effb941cfe2ae3164b)

#### editor/inlineChatZoneWidget/InlineChatZoneWidgetTerminated/Dark
![screenshot](https://hediet-screenshots.azurewebsites.net/images/2fbc12507b59ff950d9612d2df92e6b39d8bf0bf500478e42eca2ead4d1ae206)

#### editor/inlineChatZoneWidget/InlineChatZoneWidgetTerminated/Light
![screenshot](https://hediet-screenshots.azurewebsites.net/images/4632ab04d1fdd7db9ab0e00cce10aefb7a6344eb8869dfce740309a8801cab73)

@ulugbekna ulugbekna merged commit 6ee3ae6 into main Apr 22, 2026
29 of 30 checks passed
@ulugbekna ulugbekna deleted the ulugbekna/awkward-mockingbird branch April 22, 2026 17:28
@vs-code-engineering vs-code-engineering Bot added this to the 1.118.0 milestone Apr 22, 2026
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