Skip to content

Commit

Permalink
Lower editor debounce time
Browse files Browse the repository at this point in the history
  • Loading branch information
n1ckoates committed Aug 25, 2024
1 parent b8edc76 commit cbeb6dd
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions plugins/Themer/src/editor.txt
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,10 @@
}
);

window.electron.ipcRenderer
.invoke("THEMER_GET_CSS")
.then((css) => {
editor.getModel().setValue(css)
editor.updateOptions({ readOnly: false });
});
window.electron.ipcRenderer.invoke("THEMER_GET_CSS").then((css) => {
editor.getModel().setValue(css);
editor.updateOptions({ readOnly: false });
});

editor.onDidChangeModelContent(() => {
clearTimeout(timeoutId);
Expand All @@ -68,7 +66,7 @@
"THEMER_SET_CSS",
editor.getValue()
);
}, 200);
}, 100);
});
window.addEventListener("resize", () => {
editor.layout();
Expand Down

0 comments on commit cbeb6dd

Please sign in to comment.