-
-
Notifications
You must be signed in to change notification settings - Fork 116
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
FormatBar: Set sensitivity of affected items, fix binding #1236
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This addresses the tooltip and sensitivity issues mentioned. There is still something odd about the bindings (e.g. changing the tab width via the popover does not actually change the tab width whereas doing via the preference menu does). However best have a PR devoted to bindings.
When the tooltip is null, are the settings definitely from the app settings? We do not seem to honor Emacs and vim mode line comments in individual documents at present and there does not seem to be another way of having these settings individualized.
So is there any reason why a tooltip stating the source of settings when not editorconfig
? Otherwise it is a bit confusing to sometimes have a tooltip and sometimes not.
Yeah this might need a larger rework. It's got multiple things trying to touch these switches which seems bad. Maybe? But it seems weird to have a tooltip that says something that is expected. I think it really only makes sense to provide an explanation for why user settings are being ignored. Thinking about it, a tooltip is probably not right for this anyways since it would be better to have an explanation next to the insensitive items |
I think it debatable what is expected of the FormatBar, at least by a new user, as it can update depending on the document showing so appears to relate to the document not the app. The same is not true of the Preference menu, which is independent of the focussed document. Additional info in the popover to resolve the ambiguity is acceptable though. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll approve this on the expectation that the binding problems mentioned earlier, particular with the indent spin button, will be addressed in a later PR (they were not introduced by this PR)
Fixes #1232