Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

是否可以提供个方法重置undoredo队列 #427

Closed
MTTTM opened this issue Jan 14, 2024 · 3 comments
Closed

是否可以提供个方法重置undoredo队列 #427

MTTTM opened this issue Jan 14, 2024 · 3 comments
Assignees
Labels
enhancement New feature or request

Comments

@MTTTM
Copy link

MTTTM commented Jan 14, 2024

一个很棒的想法

场景:
打开远程数据,再读取另外个远程数据,结果回退时候,回到了上一个编辑的内容,
我想打开新的远程数据时候,清空之前的undoredo队列

@imzbf
Copy link
Owner

imzbf commented Jan 15, 2024

查了下说明

可能不会有专门的重置历史的方法,转而使用某个重置整个编辑器状态的方法,间接达到这个目的

@imzbf imzbf self-assigned this Jan 15, 2024
@imzbf imzbf added the enhancement New feature or request label Jan 15, 2024
@imzbf
Copy link
Owner

imzbf commented Jan 18, 2024

4.11.0提供了resetHistory来清空输入历史

@imzbf imzbf closed this as completed Jan 18, 2024
@MTTTM
Copy link
Author

MTTTM commented Jan 21, 2024

谢谢,超级棒的

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants