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

Fix dirty setting update logic #58926

Merged
merged 8 commits into from
Sep 21, 2018
Merged

Fix dirty setting update logic #58926

merged 8 commits into from
Sep 21, 2018

Conversation

guywaldman
Copy link
Contributor

This PR closes #58537.

Setting that are dirty will now update:

  • On changes when focused - with a debounce of 1000ms
  • On blur - immediately

* Dirty setting will update when focused with a higher debounce
* Dirty setting will immediately update when blurred
@roblourens
Copy link
Member

I'm not sure, I liked the comment that only text setting updates should have a slow debounce, and other types should be committed as fast as possible. What do you think? Should we send the type with onDidChangeSetting, and debounce differently based on the type?

@roblourens roblourens added this to the September 2018 milestone Sep 20, 2018
* Added a new enum for setting types
* Added separate `Delayer` with a long debounce for non-text inputs
@guywaldman
Copy link
Contributor Author

@roblourens Updated :)

Copy link
Member

@roblourens roblourens left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!!

@roblourens roblourens merged commit ab13118 into microsoft:master Sep 21, 2018
@guywaldman
Copy link
Contributor Author

guywaldman commented Sep 21, 2018

@roblourens Just making sure - CI build for latest commit says unit tests are failing on Linux, but it seems that the problem is not with my changes. Is it OK?

@roblourens
Copy link
Member

roblourens commented Sep 21, 2018

Yeah I checked it out and it looked like a flaky test 👍

@guywaldman guywaldman deleted the 58537-settings-autosave-debounce branch October 10, 2018 12:02
@github-actions github-actions bot locked and limited conversation to collaborators Mar 28, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Auto save in new settings results in multiple validation errors when typing text
2 participants