Skip to content

Conversation

@seedlord
Copy link
Contributor

@seedlord seedlord commented Apr 24, 2025

Context

Removed redundant code

Implementation

As suggested by ellipsis-dev in #2857 (comment)

Screenshots

not needed

How to Test

not needed

Get in Touch

https://discord.com/users/201009672675786752


Important

Refactored focus logic in DiffViewProvider.ts by extracting it into _focusOriginalDocument() and updated a VSCode command-line argument in index.ts.

  • Refactoring:
    • Extracted focus logic into _focusOriginalDocument() in DiffViewProvider.ts to reduce code duplication.
    • Replaced inline focus logic with _focusOriginalDocument() calls in saveChanges() and revertChanges().
  • Misc:
    • Updated VSCode command-line argument from -n to -W in index.ts.

This description was created by Ellipsis for 394bc1b. You can customize this summary. It will automatically update as commits are pushed.

- Maintains editor view column state when closing and reopening files during diff operations, ensuring tabs stay opened in their original position.

- Prevents closing the original editor tab when opening the diff view, preserving pinned status when applying changes via write_to_file or apply_diff.

- Updates VSCode workspace launch flag from -n to -W for compatibility.
@changeset-bot
Copy link

changeset-bot bot commented Apr 24, 2025

⚠️ No Changeset found

Latest commit: b16d87b

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@seedlord seedlord marked this pull request as ready for review April 24, 2025 06:58
@seedlord seedlord requested review from cte and mrubens as code owners April 24, 2025 06:58
@dosubot dosubot bot added the size:M This PR changes 30-99 lines, ignoring generated files. label Apr 24, 2025
@adamhill
Copy link
Contributor

Thanks for following up with an ellipsis bot comment post merge!

@hannesrudolph hannesrudolph moved this from New to PR [Pre Approval Review] in Roo Code Roadmap Apr 28, 2025
@sachasayan
Copy link
Contributor

Needs an update to resolve conflicts @seedlord . 😇

@seedlord seedlord marked this pull request as draft May 2, 2025 01:08
@hannesrudolph hannesrudolph moved this from PR [Pre Approval Review] to PR [Draft/WIP] in Roo Code Roadmap May 10, 2025
@seedlord seedlord closed this May 14, 2025
@github-project-automation github-project-automation bot moved this from PR [Draft/WIP] to Done in Roo Code Roadmap May 14, 2025
@seedlord seedlord deleted the refactor/extract-focus-logic branch May 19, 2025 20:06
@hannesrudolph hannesrudolph moved this from New to Done in Roo Code Roadmap May 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:M This PR changes 30-99 lines, ignoring generated files.

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

3 participants