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

Handle only relevant settings key changes #1345

Merged
merged 2 commits into from
Jun 28, 2023
Merged

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 Bitesize 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
6 checks passed
@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
Bitesize 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
2 participants