Skip to content

Commit

Permalink
increase autosave delay to 5s
Browse files Browse the repository at this point in the history
  • Loading branch information
gdamjan committed Dec 30, 2023
1 parent dc1705e commit fd1c3d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion playground/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ async function init() {
// make it global for debugging
window.monacoEditor = editor;

const debouncedSave = debounce(() => save(editor), 1000);
const debouncedSave = debounce(() => save(editor), 5000);
editor.onKeyDown((ev) => {
if (ev.keyCode === 49 /** KeyCode.KeyS */ && ev.ctrlKey) {
ev.preventDefault();
Expand Down

0 comments on commit fd1c3d6

Please sign in to comment.