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
@@ -1243,6 +1243,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': 'ファイルを検索...',