-
Notifications
You must be signed in to change notification settings - Fork 28k
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
Regression: Editing user settings is broken #31246
Comments
@vvs Thanks for reporting this. Fixed it. |
@sandy081 Is this quick auto-save really needed for the settings? You see, even with the additional fix, there are cases when text gets grabled in the settings. For example, if I quickly type Further more, it is impossible to indent to the new line to start typing some new setting, since this immediate auto-save would strip out the starting spaces and the cursor will be forced to the start of the line. Then I type TAB, it gets indented to the proper position, and immediately gets back to start of the line. All in all, pretty inconvenient experience now with the settings. |
@vvs There were couple of reasons for implementing Auto save of settings.
IMO Auto saving the settings always, improves the user experience. Do you think, the current delay time of To be safe, I will use the default value of |
@sandy081 Thank you for the explanation, so I now have better understanding of why the settings auto-saving is desirable in some contexts. Still, for me, in my simple single-workspace world the auto-saving is kinda bad. There are multiple scenarios when auto-saving is less than ideal:
|
@vvs Is not it the same when you have auto save enabled? Is your argument is to disable auto save completely for settings? If you see above gif, one of the settings has become invalid due to the edit that was done and Editor gets updated according to the settings those are valid at present. Current settings experience is always based on editing, so there can be an intermediate state always. Hence, I think auto save is not the prime reason for the issues you mentioned. IMO instant feedback to the user is good. I agree there are pros and cons with the new behaviour. If the advantages are good enough then the above corner cases can be overseen. |
@Microsoft/vscode Opinions on always auto saving Settings with the delay of 1s - same as |
@sandy081 can you check whether there is a parse error before you automatically save the file? |
I am not really using auto-save feature, and for the reasons we discuss here as well: it is inconvenient when a file I am currently editing is being changed under myself at random times (and removing trailing spaces, including the line I am currently started, and possibly reformatting the rest). Back to the settings. I can see where saving the settings without user requesting it would be nice:
There are a lot of cases when there will be no instant feedback anyways, since some of the settings would require user to reload/restart the editor or to switch to other file to see the change. |
Does this affect people who have auto save disabled? If so then 👎 , it doesn't auto save anywhere else so it's inconsistent and could lead to confusion. |
- Revert auto saving settings - Revert virtual editor for workspace settings in MR workspace
After discussing with the team, reverted auto saving, to not to regress the behaviour for users not using auto save. Side affect of this is to revert virtual editor for workspace settings in MR workspace and show the workspace configuration file completely. |
@sandy081 makes sense to me, we should maybe stop trying to fix the settings editor and do the real thing with a UI editing experience instead... I like how the settings are presented today with your decorations, so I think we are fine for now: Maybe we could immediately put the cursor into the settings section to make clear where the editing happens. Did you have a chance to play with the readonly regions in the editor? Even though it is not a 100% perfect fix for the problem, maybe it would avoid some frustrations when editing this file. |
@bpasero I am not aware of the readonly regions. Will look into them. |
When
EditorConfig
extension is installed, editing the user settings is broken. The regression was introduced in e6770cc, according to git bisect.Steps to Reproduce:
Ctrl+,
1
, then2
and then3
will end up with321
Reproduces without extensions: No
The text was updated successfully, but these errors were encountered: