mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-10-15 04:18:45 +00:00
* fix: prevent chatbox focus loss during automated file editing (#4574) - Add preserveFocus: true to DiffViewProvider openDiffEditor method - Implement comprehensive focus preservation during cursor positioning and scrolling - Make scrollToFirstDiff async with focus restoration capabilities - Update all tool files to use async scrollToFirstDiff - Add comprehensive unit and E2E tests for focus preservation Fixes #4574 * refactor: extract focus restoration logic and improve consistency - Created restoreEditorFocus() helper method to eliminate code duplication - Changed preserveFocus from false to true for consistent behavior - Added error handling with silent logging for focus restoration failures - Added null checks for undefined activeTextEditor cases * Delete apps/vscode-e2e/src/suite/tools/focus-preservation.test.ts It doesn't seem to be testing anything * refactor: remove focus restoration logic to simplify diff editor interactions * refactor: remove unnecessary await from scrollToFirstDiff calls --------- Co-authored-by: Daniel <57051444+daniel-lxs@users.noreply.github.com> Co-authored-by: Daniel Riccio <ricciodaniel98@gmail.com> |
||
|---|---|---|
| .. | ||
| __tests__ | ||
| DecorationController.ts | ||
| detect-omission.ts | ||
| DiffViewProvider.ts | ||
| EditorUtils.ts | ||