Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@jeremypw
Copy link
Collaborator

Fixes #1208

It was noticed that everytime a document was closed or opened strip-trailing-whitespace was called multiple times (at least once for each open document). This was caused by restore-settings being called unnecessarily because the key open-files changed and causing a lot of unnecessary work if a lot of documents are open.

This PR uses more specific handlers for the show-mini-map and strip-trailing -on-save keys only.

@jeremypw jeremypw added the Good First Issue Small, self-contained issue. Good for newcomers, and/or should be an easy fix. label Jun 27, 2023
@jeremypw jeremypw merged commit bdcb50e into master Jun 28, 2023
@jeremypw jeremypw deleted the improve-settings-handling branch June 28, 2023 09:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Good First Issue Small, self-contained issue. Good for newcomers, and/or should be an easy fix.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Slow to close multiple documents

3 participants