Skip to content

feat(autoedit): Use unified diff image for debug panel, improve hot streak display #7825

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 5 commits into from

Conversation

umpox
Copy link
Contributor

@umpox umpox commented Apr 30, 2025

Description

Image:

Switches from the custom diff implementation to just showing a unified diff image in the debug panel.

  1. Fixes bug where lines were ordered correctly
  2. Means less horizontal scrolling in vertical panel

Hot streak:

  1. Shows status of hot streak chain entries
  2. Adds correct discard reason for deferred cursor positions
image

Test plan

Manually tested on different examples in debug panel

@umpox umpox force-pushed the tr/use-unified-image branch from eeb819b to a0e4e7c Compare April 30, 2025 09:43
@umpox umpox changed the title feat(autoedit): Use unified diff image for debug panel feat(autoedit): Use unified diff image for debug panel, improve hot streak display Apr 30, 2025
}

const { diff } = makeVisualDiff(decorationInfo, 'unified', state.document)
return generateSuggestionAsImage({
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ah I didn't realise we called calculateSideBySideDiff every time the item transitions to a new phase :/ might omit this as wary of generating lots of images unncessarily

Copy link

This PR is marked as stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed automatically in 5 days.

@github-actions github-actions bot added the Stale label Jul 21, 2025
@github-actions github-actions bot closed this Jul 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant