feat: virtual scrolling with chunked buffer for large files

- Add ChunkedBuffer for 64KB chunked file access with dirty-chunk
  eviction protection
- Add LineIndex for precise byte-offset-to-line-number mapping
- Refactor IO task system with context cancellation, typed priorities,
  and new task types (ReadChunk, BuildLineIndex, StatFile)
- Add ReadFileAt to FileSystem interface (mock + real implementations)
- Integrate virtual scrolling into editor layout
- Add comprehensive tests for chunked buffer eviction, dirty-chunk
  safety, and full edit lifecycle
This commit is contained in:
gmp
2026-06-05 09:11:32 -04:00
parent c941a02f1a
commit 615957196e
16 changed files with 1949 additions and 423 deletions
+1 -1
View File
@@ -154,7 +154,7 @@ func (bm *BrowserManager) handleLoadPagesSuccess(result pool.Result) {
}
func (bm *BrowserManager) handleError(result pool.Result) {
fmt.Printf("handleError: TaskType=%s, Error=%v\n", result.TaskType, result.Error)
fmt.Printf("handleError: TaskType=%d, Error=%v\n", result.TaskType, result.Error)
bm.state.Loading = false
// For now, just reset the state or log the error.
// In production, we'd show a toast or error message.