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
@@ -1075,6 +1075,8 @@ export const dict = {
'filesView.editor.showControlsAria': 'Afficher les contrôles de l\'éditeur',
'filesView.editor.controlsTitle': 'Contrôles de l\'éditeur',
'filesView.editor.pickFileFromTree': 'Choisissez un fichier dans l\'arborescence.',
'filesView.editor.cannotPreviewBinary': 'Impossible de prévisualiser le fichier binaire',
'filesView.editor.binaryFileDescription': 'Ce fichier est binaire et ne peut pas être modifié dans OpenChamber. Téléchargez-le pour l’ouvrir avec une autre application.',
'filesView.state.loading': 'Chargement...',
'filesView.state.openingFileAtChange': 'Ouverture du fichier lors du changement...',
'filesView.tree.search.placeholder': 'Rechercher des fichiers...',