-
Notifications
You must be signed in to change notification settings - Fork 32.5k
Disable undo menu item when there is no more history available #55440
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
Comments
Shouldn't the editor provide this a as a context key @alexandrudima ? |
This is blocked by #55453, currently the global context is evaluated when computing the enablement/disablement of extensions. |
we would need an |
@alexdima I know undo state has been modified recently, any changes that would help here? |
@sbatten Yes, the undo redo service can be queried based on the current focused editor and asked if there is anything to undo or to redo. But this still depends on focus, so we would need to have a global context key that updates every time focus is changed. |
Any movement?.. 2023 is now. Sometimes this is must, and it still appears unresolved |
From #55389
Feature request
Disable the undo menu item if there is no undo history available.
(same for redo if there is no more forward history)
The text was updated successfully, but these errors were encountered: