Roo-Code/src
hannesrudolph 52d469a588 Fix focus loss issue when AI is editing files
- Add preserveFocus parameter to revealRange calls in DiffViewProvider
- Use workflow detection to determine when to preserve focus during scrolling
- Prevents chat from losing focus when AI is editing files with diff view
- Addresses daniel-lxs's reported issue where focus was still being lost

This fix ensures that when the AI is actively processing (streaming, waiting
for chunks, or in auto-approval mode), the diff view won't steal focus from
the chat input, preventing accidental typing in the wrong window.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-06-16 13:00:42 -06:00
..
__mocks__ Convert jest tests to vitest and disable default watch mode for vitest (#4568) 2025-06-11 14:48:01 -07:00
__tests__ Convert jest tests to vitest and disable default watch mode for vitest (#4568) 2025-06-11 14:48:01 -07:00
activate Marketplace (#4538) 2025-06-11 17:28:12 -04:00
api Convert jest tests to vitest and disable default watch mode for vitest (#4568) 2025-06-11 14:48:01 -07:00
assets PNPM + Turbo monorepo + Nightly releases (#3407) 2025-05-21 21:01:20 -07:00
core Add explanatory comments for automated workflow focus preservation 2025-06-16 12:24:44 -06:00
extension Move evals into pnpm workspace, switch from SQLite to Postgres (#4278) 2025-06-03 01:38:08 -07:00
i18n Marketplace (#4538) 2025-06-11 17:28:12 -04:00
integrations Fix focus loss issue when AI is editing files 2025-06-16 13:00:42 -06:00
services Convert jest tests to vitest and disable default watch mode for vitest (#4568) 2025-06-11 14:48:01 -07:00
shared Convert jest tests to vitest and disable default watch mode for vitest (#4568) 2025-06-11 14:48:01 -07:00
utils Refactor workflow detection logic and add comprehensive test coverage 2025-06-11 21:52:40 -06:00
workers Count tokens worker (#3037) 2025-04-29 12:29:25 -07:00
.gitignore PNPM + Turbo monorepo + Nightly releases (#3407) 2025-05-21 21:01:20 -07:00
.prettierignore PNPM + Turbo monorepo + Nightly releases (#3407) 2025-05-21 21:01:20 -07:00
.vscodeignore PNPM + Turbo monorepo + Nightly releases (#3407) 2025-05-21 21:01:20 -07:00
esbuild.mjs Try to fix win32 esbuild (#4479) 2025-06-09 15:03:44 -07:00
eslint.config.mjs Fix linter errors (#3821) 2025-05-21 23:16:43 -07:00
extension.ts Cloud: add auth logs to the output channel (#4270) 2025-06-02 16:56:27 -07:00
jest.config.mjs Codebase indexing (Clean history) (#3137) 2025-05-23 19:07:19 -06:00
package.json Marketplace (#4538) 2025-06-11 17:28:12 -04:00
package.nls.ca.json Marketplace (#4538) 2025-06-11 17:28:12 -04:00
package.nls.de.json Marketplace (#4538) 2025-06-11 17:28:12 -04:00
package.nls.es.json Marketplace (#4538) 2025-06-11 17:28:12 -04:00
package.nls.fr.json Marketplace (#4538) 2025-06-11 17:28:12 -04:00
package.nls.hi.json Marketplace (#4538) 2025-06-11 17:28:12 -04:00
package.nls.it.json Marketplace (#4538) 2025-06-11 17:28:12 -04:00
package.nls.ja.json Marketplace (#4538) 2025-06-11 17:28:12 -04:00
package.nls.json Marketplace (#4538) 2025-06-11 17:28:12 -04:00
package.nls.ko.json Marketplace (#4538) 2025-06-11 17:28:12 -04:00
package.nls.nl.json Marketplace (#4538) 2025-06-11 17:28:12 -04:00
package.nls.pl.json Marketplace (#4538) 2025-06-11 17:28:12 -04:00
package.nls.pt-BR.json Marketplace (#4538) 2025-06-11 17:28:12 -04:00
package.nls.ru.json Marketplace (#4538) 2025-06-11 17:28:12 -04:00
package.nls.tr.json Marketplace (#4538) 2025-06-11 17:28:12 -04:00
package.nls.vi.json Marketplace (#4538) 2025-06-11 17:28:12 -04:00
package.nls.zh-CN.json Marketplace (#4538) 2025-06-11 17:28:12 -04:00
package.nls.zh-TW.json Marketplace (#4538) 2025-06-11 17:28:12 -04:00
tsconfig.json PNPM + Turbo monorepo + Nightly releases (#3407) 2025-05-21 21:01:20 -07:00
turbo.json Improve turbo task dependency declarations (#4323) 2025-06-04 09:32:27 -07:00
vitest.config.ts Convert jest tests to vitest and disable default watch mode for vitest (#4568) 2025-06-11 14:48:01 -07:00
vitest.setup.ts Convert jest tests to vitest and disable default watch mode for vitest (#4568) 2025-06-11 14:48:01 -07:00