fix: hover transparent + auto-save éditeur 2s

This commit is contained in:
2026-05-30 20:36:13 -04:00
parent 1352818b25
commit a662a4a3c2
2 changed files with 10 additions and 3 deletions
+7
View File
@@ -315,6 +315,13 @@ async function openEditor(vaultName, filePath) {
},
]),
EditorView.lineWrapping,
// Auto-save: debounced save after 2s of inactivity
EditorView.updateListener.of((update) => {
if (update.docChanged) {
clearTimeout(window._obsigateAutoSaveTimer);
window._obsigateAutoSaveTimer = setTimeout(() => saveFile(), 2000);
}
}),
];
// Add language support based on file extension