Sprotty
Toggle Dark/Light/Auto modeToggle Dark/Light/Auto modeToggle Dark/Light/Auto modeBack to homepage

Interface. Command Stack Options

undoHistoryLimit

undoHistoryLimit: number

Defined in: packages/sprotty/src/base/commands/command-stack-options.ts:37

The maximum number of commands that can be undone. Once the undo stack reaches this number, any additional command that is pushed will remove one from the bottom of the stack.

If negative, there is no limit, which results in a memory leak.