-
Notifications
You must be signed in to change notification settings - Fork 112
Minor change: Only show notice with actual changes #1286
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
Conversation
|
Hey @Moyf , thanks for creating the PR. I am a little torn on whether to merge it or not. I may have the wrong use case here for why I would keep the notice since I use it to let me know if things were linted and nothing happened. But maybe that is just something I use it for that most users do not want. I am thinking about this and hope to come to a decision on it. |
Oh hey! I think this PR is actually related to how I personally use Linter—I bind "Linter formatting" and "saving" together (and assign it to Perhaps (if you don't mind adding further settings) "Do not show Notice when modifications are empty" could be made an optional setting (defaulting to False)?
|
|
@Moyf , that setting addition would be fine with me. Just note that the setting would go under the general tab and would need to only show if the Linter has enabled the notice for the changes made. There are some similar examples in that file here:
|
I noticed that currently the However, regardless of whether I enable or disable this option, the notice always appears when I execute the
|
|
I believe there are two notices. There is one for lint on file change and there is one for lint on save. But then again I could be wrong and need to double check that logic. |
|
Yes, the setting should actually not be hidden by Lint on Save. I incorrectly added the hiding logic. As for how I think that the new setting would work, I think it would show if either display message on lint or display lint on file change message is enabled. That way it can be a global setting on the notices without needing multiple versions of the settings. |
Yes, I agree with you 🫡 |
@pjkaufman Hi, long time no see! I've finally completed the version of this PR with settings, opened at #1378. |


To avoid the "0 character added, 0 character removed" notice