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

Multiple device sync for Custom Snippets #123880

Closed
asphub opened this issue May 14, 2021 · 11 comments
Closed

Multiple device sync for Custom Snippets #123880

asphub opened this issue May 14, 2021 · 11 comments
Assignees
Labels
info-needed Issue requires more information from poster

Comments

@asphub
Copy link

asphub commented May 14, 2021

Can we do a Multiple device sync for Custom Snippets like wise the Settings sync works.

This feature will be more easier to working different devices as a team and custom snippets for each Project Workspaces.

@vscodebot
Copy link

vscodebot bot commented May 14, 2021

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

@egamma
Copy link
Member

egamma commented May 14, 2021

/needsMoreInfo

@asphub
Copy link
Author

asphub commented May 14, 2021

/needsMoreInfo

Hi @egamma

Here is one example Snippet I created for React component

snippets\typescriptreact.json

{
	"React Component": {
		"prefix": "rc",
		"body": [
			"import './${1:$TM_FILENAME_BASE}.scss';\n",
			"const ${1:$TM_FILENAME_BASE} = () => {",
			"  return (",
			"    <div className='${1:$TM_FILENAME_BASE}'>",
			"      $2",
			"    </div>",
			"  );",
			"};\n",
			"export default ${1:$TM_FILENAME_BASE};",
		],
		"description": "React Component with SCSS"
	}
}

Needs to sync these custom snippets across the devices with the Settings SYNC.

@gjsjohnmurray
Copy link
Contributor

Similar to #91011, which is for user tasked.

@jrieken jrieken assigned sandy081 and unassigned jrieken May 18, 2021
@asphub
Copy link
Author

asphub commented May 25, 2021

Why its closed I added info in this comment

@sandy081 sandy081 reopened this Jun 8, 2021
@sandy081
Copy link
Member

sandy081 commented Jun 8, 2021

@asphub User snippets are synchronized. May I know where does your snippets located? Are you using out of of the box settings sync?

@asphub
Copy link
Author

asphub commented Jun 9, 2021

@asphub User snippets are synchronized. May I know where does your snippets located? Are you using out of of the box settings sync?

@sandy081 Pls see the path of snippets:

C:\Users<username>\AppData\Roaming\Code\User\snippets\typescriptreact.json

Also my settings sync is turned on, Pls see the screenshot.

image

@sandy081
Copy link
Member

sandy081 commented Jun 9, 2021

Thanks for info. We do sync user snippets. Can you please try following?

  • Enable sync on machine 1 and machine 2
  • Open settings sync - synced data view - Use command Settings Sync: Show Synced Data
  • Open settings sync log - There is an action available in the title of the view to open the log
  • From machine 1, create a user snippet - Check in the settings sync log that sync is triggered and completed.
  • Refresh the Sync Activity (Remote) view - Check that snippet you created is pushed to remote. Refresh the view.
  • From machine 2 - open the settings sync view and logs
  • Wait for a moment for sync to be triggered
  • Check that snippet you created in machine 1 is synced

If any of the above steps are not happening, please share the settings sync log from machine 1 and machine 2

@asphub
Copy link
Author

asphub commented Jun 11, 2021

Thanks for info. We do sync user snippets. Can you please try following?

* Enable sync on machine 1 and machine 2

* Open settings sync - synced data view - Use command `Settings Sync: Show Synced Data`

* Open settings sync log - There is an action available in the title of the view to open the log

* From machine 1, create a user snippet - Check in the settings sync log that sync is triggered and completed.

* Refresh the Sync Activity (Remote) view - Check that snippet you created is pushed to remote. Refresh the view.

* From machine 2 - open the settings sync view and logs

* Wait for a moment for sync to be triggered

* Check that snippet you created in machine 1 is synced

If any of the above steps are not happening, please share the settings sync log from machine 1 and machine 2

Thanks for the support @sandy081

Its working after waiting for some seconds

@asphub asphub closed this as completed Jun 11, 2021
@github-actions github-actions bot locked and limited conversation to collaborators Jul 26, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
info-needed Issue requires more information from poster
Projects
None yet
Development

No branches or pull requests

6 participants
@egamma @jrieken @gjsjohnmurray @sandy081 @asphub and others