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
@@ -1728,6 +1728,8 @@ export const dict: Record<I18nKey, string> = {
'filesView.editor.openFilesAria': 'Otwarte pliki',
'filesView.editor.openInDesktopApp': 'Otwórz w aplikacji desktopowej',
'filesView.editor.pickFileFromTree': 'Wybierz plik z drzewa.',
'filesView.editor.cannotPreviewBinary': 'Nie można podglądać pliku binarnego',
'filesView.editor.binaryFileDescription': 'Ten plik jest binarny i nie można go edytować w OpenChamber. Pobierz go, aby otworzyć w innej aplikacji.',
'filesView.editor.refreshApps': 'Odśwież aplikacje',
'filesView.editor.saveAria': 'Zapisz ({shortcut})',
'filesView.editor.saveFile': 'Zapisz plik',