fix: hover transparent + auto-save éditeur 2s
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user