worktree: Yield during large file decoding (#62831)

# Objective
Closing a project while a large local text file is loading can be
delayed
because file-reading and UTF-8 streaming loops have no await points.

Partially addresses #27283.
## Solution

Yield between 1 MiB blocks while:
- streaming UTF-8 files into a Rope
- reading files handled by the fallback decoder, including BOM, UTF-16,
  and other non-UTF-8 encodings

Release Notes:

- Improved responsiveness when closing projects that are loading large
text files.
cef06d351bAli committed on 8/20/2026, 6:04:08 AM· committed by GitHubparenta58fff1
3 files changedLine totals unavailable