Extract actions to separate files

This commit is contained in:
Valtteri Karesto
2021-12-13 22:23:37 +02:00
parent 59637e32fe
commit 4d4b96bede
21 changed files with 620 additions and 585 deletions

View File

@@ -0,0 +1,12 @@
import state, { IState } from '../index';
export const updateEditorSettings = (
editorSettings: IState["editorSettings"]
) => {
state.editorCtx?.getModels().forEach((model) => {
model.updateOptions({
...editorSettings,
});
});
return (state.editorSettings = editorSettings);
};