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

Delay auto-save until exiting insert mode #11047

Merged
merged 1 commit into from
Jun 29, 2024
Merged

Commits on Jun 27, 2024

  1. Delay auto-save until exiting insert mode

    Saving while in insert mode causes issues with the modification
    indicator and this is very easy to reproduce with the current state of
    the auto-save hook. We can tweak the hook slightly to await the mode
    switch out of insert mode to perform the save.
    
    The debounce is preserved: if you save and then immediately exit insert
    mode the debounce will be respected. If the debounce lapses while you
    are in insert mode, the save occurs as you switch out of insert mode
    immediately.
    the-mikedavis committed Jun 27, 2024
    Configuration menu
    Copy the full SHA
    72f6559 View commit details
    Browse the repository at this point in the history