-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Refactor: Extract focus logic in DiffViewProvider #2905
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
Conversation
- 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.
|
|
Thanks for following up with an ellipsis bot comment post merge! |
|
Needs an update to resolve conflicts @seedlord . 😇 |
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.tsby extracting it into_focusOriginalDocument()and updated a VSCode command-line argument inindex.ts._focusOriginalDocument()inDiffViewProvider.tsto reduce code duplication._focusOriginalDocument()calls insaveChanges()andrevertChanges().-nto-Winindex.ts.This description was created by
for 394bc1b. You can customize this summary. It will automatically update as commits are pushed.