fix(files): prevent autosave data loss on load lag and binary files

Guard FilesView autosave until the selected file has finished loading,
refuse binary/PDF/office/archive text saves, and add a persisted global
autoSaveEnabled setting (default true) under Settings → General.

Co-authored-by: Serhii Dziupin <makeittech@users.noreply.github.com>
This commit is contained in:
Cursor Agent
2026-07-30 06:37:47 +00:00
co-authored by Serhii Dziupin
parent a4c7bac303
commit 5b727ed53c
34 changed files with 504 additions and 55 deletions
+2
View File
@@ -1213,6 +1213,8 @@ export const dict: Record<I18nKey, string> = {
"filesView.editor.showControlsAria": "Показати елементи керування редактора",
"filesView.editor.controlsTitle": "Елементи керування редактора",
"filesView.editor.pickFileFromTree": "Вибрати файл із дерева.",
"filesView.editor.cannotPreviewBinary": "Неможливо попередньо переглянути бінарний файл",
"filesView.editor.binaryFileDescription": "Цей файл є бінарним і його не можна редагувати в OpenChamber. Завантажте його, щоб відкрити в іншій програмі.",
"filesView.state.loading": "Завантаження...",
"filesView.state.openingFileAtChange": "Відкриття файлу на зміні...",
"filesView.tree.search.placeholder": "Пошук файлів...",