rename preference to autosaveDraft

This commit is contained in:
tophf 2022-01-23 02:20:57 +03:00
parent fceb4c4990
commit 7bea0397e9
2 changed files with 2 additions and 2 deletions

View File

@ -25,7 +25,7 @@
debounce(updateDraft, isDirty ? delay : 0);
});
prefs.subscribe('editor.autosaveDelay', (key, val) => {
prefs.subscribe('editor.autosaveDraft', (key, val) => {
delay = clamp(val * 1000 | 0, 1000, 2 ** 32 - 1);
const t = debounce.timers.get(updateDraft);
if (t != null) debounce(updateDraft, t ? delay : 0);

View File

@ -99,7 +99,7 @@
'editor.selectByTokens': true,
'editor.appliesToLineWidget': true, // show applies-to line widget on the editor
'editor.autosaveDelay': 10, // seconds
'editor.autosaveDraft': 10, // seconds
'editor.livePreview': true,
// show CSS colors as clickable colored rectangles