-
-
Notifications
You must be signed in to change notification settings - Fork 13
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
Extension can delete all user settings.json #58
Comments
Yes it's a dreadful experience, thanks for opening the issue. |
@TonyGravagno I can't reproduce the bug...
It's what it already does: vscode-sync-settings/src/repositories/file.ts Line 351 in 7101534
Anyway, an extended profile never synchronizes the vscode-sync-settings/src/repositories/file.ts Line 440 in 7101534
|
I was able to discover a bug with the same result as yours. I think an extended profile shouldn't be able to change the Are you still able the reproduce your bug? |
Sincere thanks for looking into this. I've been intensely working on other projects and just came back here. I will look into this soon. |
On creating a new syncSettings.resources value in the User settings.json, the attribute "user" isn't specified - "user" isn't a valid value for Resources: vscode-sync-settings/src/repository.ts Line 26 in 7101534
I don't know why I had "user" there and I'm sorry that this might be an invalid report. "syncSettings.resources": [
"extensions",
"keybindings",
"settings",
"snippets",
"uiState",
"user" // not valid but no indication from UI
] Your code looks fine. If there is an invalid option, it looks like it is ignored. vscode-sync-settings/src/repositories/file.ts Line 315 in 7101534
So now I think there might be a different trigger for that error. I have no idea what to check at the moment. I'll come back to this ticket if I see another pattern. Thanks. |
On experimenting with this extension I think I created a condition that deletes the user settings.json file. I recovered it, others may not be so fortunate.
I think this happens when we set:
And not
Since user settings are not configured to sync outbound, when a sync is done and there are no user settings to pull in, the user settings are simply deleted - or replaced with the null settings that have been retrieved.
To reproduce this:
Preferred behaviour : If a resource isn't specified, don't process it at all.
The text was updated successfully, but these errors were encountered: