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

Getting started page shows enable settings sync even when already enabled #119896

Closed
lramos15 opened this issue Mar 25, 2021 · 8 comments
Closed
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug *duplicate Issue identified as a duplicate of another issue(s) getting-started

Comments

@lramos15
Copy link
Member

Steps to Reproduce:

  1. Open getting started page
  2. Go through quick setup
  3. 🐛 It wants me to enable setting sync, and clicking the button brings up the sign in option even though I already have settings sync enabled.
@JacksonKearl
Copy link
Contributor

Is this latest insiders? I saw that yesterday and beleive I fixed it but possibly not.

@lramos15
Copy link
Member Author

Yes this is latest insiders.

@JacksonKearl
Copy link
Contributor

cc @sandy081 I listen on:

if (userDataAutoSyncEnablementService.isEnabled()) { this.progressByEvent('sync-enabled'); }
this._register(userDataAutoSyncEnablementService.onDidChangeEnablement(() => {
if (userDataAutoSyncEnablementService.isEnabled()) { this.progressByEvent('sync-enabled'); }
}));

but this seems to not always catch sync being active, do you know a better way to check this?

@sandy081
Copy link
Member

This should be enough. IUserDataAutoSyncEnablementService is the truth for settings sync enablement. Can you repro it from sources?

@lramos15
Copy link
Member Author

I can reproduce this sometimes from sources. It seems to be pretty hit or miss with that event.
For example enabling settings sync and then opening the getting started page will show the entry but have it checked. Disabling settings sync and then restarting oss will not unhide the entry. I'm not sure what's going on or what's a good repro for it.

@JacksonKearl JacksonKearl added bug Issue identified by VS Code Team member as probable bug getting-started labels Mar 29, 2021
@JacksonKearl JacksonKearl added this to the April 2021 milestone Mar 29, 2021
@sandy081
Copy link
Member

@JacksonKearl I just debugged running from sources and line 187 and line 189 above are getting executed as expected when settings sync is on/off or enabled/disabled.

@JacksonKearl
Copy link
Contributor

JacksonKearl commented Mar 30, 2021

Thanks! Thats, interesting, it may be that the enablement message gets delivered before the task is around to be marked complete.

@JacksonKearl
Copy link
Contributor

Going to take this as part of #122570

@JacksonKearl JacksonKearl added the *duplicate Issue identified as a duplicate of another issue(s) label Apr 28, 2021
@JacksonKearl JacksonKearl removed this from the April 2021 milestone Apr 28, 2021
@github-actions github-actions bot locked and limited conversation to collaborators Jun 12, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug *duplicate Issue identified as a duplicate of another issue(s) getting-started
Projects
None yet
Development

No branches or pull requests

3 participants