Skip to content

Comments

Fix displaying diff line when instant applying in jetbrains extensions#10627

Open
Pyroboomka wants to merge 1 commit intocontinuedev:mainfrom
Pyroboomka:fix/idea-muti-edit-diff
Open

Fix displaying diff line when instant applying in jetbrains extensions#10627
Pyroboomka wants to merge 1 commit intocontinuedev:mainfrom
Pyroboomka:fix/idea-muti-edit-diff

Conversation

@Pyroboomka
Copy link
Contributor

@Pyroboomka Pyroboomka commented Feb 18, 2026

Before:
Снимок экрана 2026-02-18 в 22 12 59

After:
Снимок экрана 2026-02-18 в 22 15 29

Should also resolve same issue for multi-edit tool, since they use the same path. Should not affect edit_existing_file in any way.
No the cleanest solution, but it works.

Checklist

  • I've read the contributing guide
  • The relevant docs, if any, have been updated or created
  • The relevant tests, if any, have been updated or created

Tests

no testing, trust me (c)


Continue Tasks: ▶️ 2 queued · ▶️ 7 not started · ✅ 27 no changes — View all


Summary by cubic

Fixes missing added-line highlights when instant-applying diffs in the JetBrains extension. Also fixes the same issue in the multi-edit tool; no impact to edit_existing_file.

  • Bug Fixes
    • Send ADD lines to addNewLineForHighlightOnly with the current line to render the highlight during streaming.
    • Add addNewLineForHighlightOnly in VerticalDiffBlock to apply the green CONTINUE_DIFF_NEW_LINE highlighter and record the text.

Written for commit cc0b12e. Summary will update on new commits.

@Pyroboomka Pyroboomka requested a review from a team as a code owner February 18, 2026 19:22
@Pyroboomka Pyroboomka requested review from RomneyDa and removed request for a team February 18, 2026 19:22
@dosubot dosubot bot added the size:XS This PR changes 0-9 lines, ignoring generated files. label Feb 18, 2026
@github-actions
Copy link

github-actions bot commented Feb 18, 2026

All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.

@continue-staging
Copy link
Contributor

Documentation Review

No documentation updates needed.

This PR is an internal bug fix for the JetBrains extension's diff highlighting behavior during instant apply and multi-edit operations. The changes are confined to internal Kotlin implementation code (DiffStreamHandler.kt and VerticalDiffBlock.kt) and correct a visual rendering issue where added lines weren't being properly highlighted.

Since this fix:

  • Doesn't change any user-facing features or workflows
  • Doesn't modify configuration options or APIs
  • Simply corrects existing behavior to work as expected

The Continue Docs remain accurate as-is.

@continue-staging
Copy link
Contributor

Documentation Review: No docs updates needed.

This PR fixes an internal visual rendering bug in the JetBrains extension where added lines weren't being properly highlighted during instant-apply diff streaming. The changes are:

  • Internal Kotlin implementation details (adding a helper method for line highlighting)
  • No user-facing API, configuration, or workflow changes
  • No new features that users need to learn about

The existing documentation accurately describes the diff/instant-apply functionality—this fix simply makes the visual feedback work correctly as already documented.

@continue-staging
Copy link
Contributor

Documentation Review

No documentation update needed.

This PR is a visual bug fix for the JetBrains extension's diff line highlighting during instant apply. The changes:

  • Fix missing green highlighting on added lines when streaming diffs
  • Are purely internal rendering improvements
  • Don't introduce new features, APIs, or configuration options
  • Don't change any user-facing behavior that's currently documented

The existing documentation accurately describes the edit/diff functionality—this PR simply fixes how it's visually displayed in the editor.

Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

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

No issues found across 2 files

@Pyroboomka Pyroboomka force-pushed the fix/idea-muti-edit-diff branch from eacf762 to cc0b12e Compare February 18, 2026 19:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:XS This PR changes 0-9 lines, ignoring generated files.

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

1 participant