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

[Feature Request] Command Line Option to prompt for Sync #92516

Closed
JustinGrote opened this issue Mar 11, 2020 · 9 comments
Closed

[Feature Request] Command Line Option to prompt for Sync #92516

JustinGrote opened this issue Mar 11, 2020 · 9 comments
Assignees
Labels
feature-request Request for new features or functionality settings-sync verification-needed Verification of issue is requested verified Verification succeeded
Milestone

Comments

@JustinGrote
Copy link
Contributor

Love the new sync feature! I would like to be able to make a portable vscode zip that, upon startup, would immediately prompt for sync login, start the sync, and then reload with my new sync, so I can download it to a computer I'm guesting on and have basically my normal experience with little hassle.

I figure this is best either as a command line option or as a settings.json item that can be pre-populated.

@vscodebot
Copy link

vscodebot bot commented Mar 11, 2020

(Experimental duplicate detection)
Thanks for submitting this issue. Please also check if it is already covered by an existing one, like:

@sandy081
Copy link
Member

If I understand correctly you would like to start vs code with sync turned on? For eg: saying code --sync on shall start VS Code with sync started?

@sandy081 sandy081 added info-needed Issue requires more information from poster settings-sync labels Mar 13, 2020
@JustinGrote
Copy link
Contributor Author

@sandy081 or just --sync that will basically call the "Sync: Configure" task on startup, skip the "what to sync" prompt, and just ask me for my Microsoft Login, immediately sync, and reload if required to apply the synced settings/extensions, if that makes sense.

Goal is to make a portable zip that I don't have to go through the sync configure process every time I open it on a new computer or system.

@sandy081
Copy link
Member

it will be --enable-sync or --disable-sync.

Enabling sync will enable sync in VS Code. You are already signed in sync will continue otherwise there will be a notification in the gear icon showing an action to sign in.

image

@sandy081 sandy081 added feature-request Request for new features or functionality and removed info-needed Issue requires more information from poster labels Mar 13, 2020
@sandy081 sandy081 added this to the March 2020 milestone Mar 13, 2020
@JustinGrote
Copy link
Contributor Author

Close enough. Thanks for your assistance!

@sandy081
Copy link
Member

Provided following option

  --sync <on> <off>                 Turn sync on or off

code-insiders --sync on Turn sync on
code-insiders --sync off Turn sync off

@sandy081 sandy081 added the verification-needed Verification of issue is requested label Mar 13, 2020
@Tyriar
Copy link
Member

Tyriar commented Mar 24, 2020

I brought up in #93262 why this CLI exists as CLI space is at a premium (especially if we don't have namespacing). This seems like a helpful way to automate for a handful of people while adding an extra line of text for everyone else, cluttering the CLI.

if I want to start VS Code by disabling sync because if sync is on there is no way to start VS Code without triggering sync. By the time window comes up and I disable sync VS Code would have already started syncing. It is very similar to --disable-extensions.

This doesn't seem that useful either; if someone enabled sync, they can just launch the client to turn it off. It's not the same as --disable-extensions as that's temporary, I'm assuming this is not?

@sandy081
Copy link
Member

If someone enabled sync, they can just launch the client to turn it off.

This is for the case that I want to launch code without sync getting started at all. It can happen that sync can happen in the time between I start VS Code and turn it off. As @bpasero mentioned in the other issue, this scenario comes under trouble shooting.

If it is an issue with namespace or cli cluttering, I am ok to move to other section or completely hide it.

@bpasero
Copy link
Member

bpasero commented Mar 24, 2020

I would at least have it under Troubleshooting and not the main category.

sandy081 added a commit that referenced this issue Mar 24, 2020
@connor4312 connor4312 added the verified Verification succeeded label Apr 1, 2020
@github-actions github-actions bot locked and limited conversation to collaborators Apr 27, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature-request Request for new features or functionality settings-sync verification-needed Verification of issue is requested verified Verification succeeded
Projects
None yet
Development

No branches or pull requests

5 participants