How to refresh the undo/redo stack in monaco editor


I need to clear or reset the undo/redo stack in Monaco editor, I looked up many resources to no avail, any help is appreciated.

Eg.

editor.getModel().emptyStack(); // or something like that to empty the stack

Source: JavaSript – Stack Overflow

September 29, 2021
Category : News
Tags: javascript | monaco-editor | reactjs

How to refresh the undo/redo stack in monaco editor


I need to clear or reset the undo/redo stack in Monaco editor, I looked up many resources to no avail, any help is appreciated.

Eg.

editor.getModel().emptyStack(); // or something like that to empty the stack

Source: JavaSript – Stack Overflow

September 29, 2021
Category : News
Tags: javascript | monaco-editor | reactjs

Leave a Reply

Your email address will not be published. Required fields are marked *

Sitemap | Terms | Privacy | Cookies | Advertising

Senior Software Developer

Creator of @LzoMedia I am a backend software developer based in London who likes beautiful code and has an adherence to standards & love's open-source.