-
Notifications
You must be signed in to change notification settings - Fork 29.5k
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
Settings sync should debounce requests when a request is in progress #91286
Comments
Syncing each areas are queued but not the manifest request. |
FWIW -- I just activated Settings Sync on what used to be my main machine, but I've been using a different one for quite a while. My newer machine picked up all the settings and extensions that I never bothered to install on it, which lead to a continuous repeating crash in Extension Host. To attempt to nail down which extension was at fault, I went through the entire extensions list (about 120 extensions) and disabled them individually. At some point during this, VSCode threw up a warning that I was blocked from settings sync for spamming it. Therefore, I think that debounce is really something that needs to be added.. I shouldn't be able to spam the server to the point where I'm locked out because I'm trying to fix the app being broken. :-) |
Currently requests are queued but not debounced. Will improve it. |
Each Settings Sync activity is debounced for 2 seconds and queued until the current sync is finished. Also when if the client manages to exceed the client side rate limit, settings sync is suspended until restarting VS Code. |
On a slow responding server, several requests get fired before proceeding ones have finished. For the following log I think the behavior should be:
Actual sync log:
The text was updated successfully, but these errors were encountered: