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

Settings reordered by resolving conflicts #91484

Closed
roblourens opened this issue Feb 25, 2020 · 3 comments
Closed

Settings reordered by resolving conflicts #91484

roblourens opened this issue Feb 25, 2020 · 3 comments
Assignees
Labels
*as-designed Described behavior is as designed settings-sync

Comments

@roblourens
Copy link
Member

roblourens commented Feb 25, 2020

Testing #91226

I set up sync in window A, set some settings, then set one setting in window B, enabled sync, and was confused by the conflict resolution diff.

Window A settings:

75291846-e3d20b00-57d7-11ea-9d2b-5ee7e6a64df9

Window B settings, I just set one:

75291863-e896bf00-57d7-11ea-91c0-ef8b550fb82b

And I got a conflict resolution prompt as expected, and clicked the button to see the diff, which is confusing. I expect to just see the one fontSize setting on the right. Or, I expect to see the merged settings on the right with just the one fontSize setting in conflict. Instead it reordered autoSave and autoSaveDelay:

image

@sandy081
Copy link
Member

Agree that this is confusing but can be explainable. Order of a setting is tried to retained while merging. It is retained by it's previous setting or by its next setting.

Since files.autoSave and files.autoSaveDelay are after editor.fontSize they are tried to place under it when merged. Order of editor.fontSize is retained in the local (machine B) as it is the file that is getting merged and hence it is respected.

@sandy081 sandy081 added *as-designed Described behavior is as designed settings-sync labels Feb 26, 2020
@vscodebot
Copy link

vscodebot bot commented Feb 26, 2020

The described behavior is how it is expected to work. If you disagree, please explain what is expected and what is not in more detail. See also our issue reporting guidelines.

Happy Coding!

@vscodebot vscodebot bot closed this as completed Feb 26, 2020
@roblourens
Copy link
Member Author

I see, I'm not sure how it could be improved but yeah it's confusing that the result doesn't really match either the local or the remote settings.

@github-actions github-actions bot locked and limited conversation to collaborators Apr 11, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
*as-designed Described behavior is as designed settings-sync
Projects
None yet
Development

No branches or pull requests

2 participants