mirror of
https://github.com/microsoft/vscode.git
synced 2026-07-10 05:28:19 -05:00
Before this change, every single window was writing to the same secret at basically the same time because they would all refresh the token and then attempt to store that refresh token. I believe this was causing a few race condition bugs that users were seeing. With this change we now so our best to have only 1 window store the session by relying on the window focused state. If the window is focused or becomes focused, we will store the refresh token. If the window detects that another window has stored something, we will not attempt to wait for focus to store something. If nothing has happened, and it's been 5 hrs (+/- some seconds) go ahead and store it. This is the scenario of when a user has VS Code in the background for like ages but never goes to it. ref #165115 ref #130893 ref #168485
Microsoft Authentication for Visual Studio Code
Notice: This extension is bundled with Visual Studio Code. It can be disabled but not uninstalled.
Features
This extension provides support for authenticating to Microsoft. It registers the microsoft Authentication Provider that can be leveraged by other extensions. This also provides the Microsoft authentication used by Settings Sync.