Skip to content
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

AI panel: make code patches human readable (remove diff notation, add diff colors) #2318

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

jurgenwerk
Copy link
Contributor

@jurgenwerk jurgenwerk commented Mar 21, 2025

Removes the <<<<<<< SEARCH ... ======= ... >>>>>>> REPLACE notation from the code displayed in the AI panel monaco editor, and adds red/green line decoration to the diffs.

Before:
image

After:

output

Copy link

github-actions bot commented Mar 21, 2025

Host Test Results

  1 files  ±0    1 suites  ±0   28m 42s ⏱️ + 1m 25s
853 tests +9  848 ✅ +9  5 💤 ±0  0 ❌ ±0 
858 runs  +9  853 ✅ +9  5 💤 ±0  0 ❌ ±0 

Results for commit edfa54b. ± Comparison against base commit 1c5a948.

♻️ This comment has been updated with latest results.

@jurgenwerk jurgenwerk changed the title Render search/replace as decorated code diff (red, green) AI panel: make code patches more human readable (remove diffing notation, add diff colors) Mar 21, 2025
@jurgenwerk jurgenwerk changed the title AI panel: make code patches more human readable (remove diffing notation, add diff colors) AI panel: make code patches human readable (remove diffing notation, add diff colors) Mar 21, 2025
@jurgenwerk jurgenwerk changed the title AI panel: make code patches human readable (remove diffing notation, add diff colors) AI panel: make code patches human readable (remove diff notation, add diff colors) Mar 21, 2025
@jurgenwerk jurgenwerk marked this pull request as ready for review March 21, 2025 10:42
@jurgenwerk jurgenwerk requested a review from a team March 21, 2025 11:12
@burieberry burieberry requested a review from a team March 21, 2025 14:12
Copy link
Contributor

@backspace backspace left a comment

Choose a reason for hiding this comment

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

v cool!

hello-world gts in feb11 2025-03-21 13-00-36

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