-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
feat: new editor.enable-diagnostics
option
#12203
base: master
Are you sure you want to change the base?
feat: new editor.enable-diagnostics
option
#12203
Conversation
I think it makes more sense for it to be a config option. This syntax is inconsistent with the rest of toggle-able options. As they all use the unified "toggle-option " A The inline-diagnostics.enable can just set cursor-line and other-line to disable. |
I'm happy to move this functionality to a separate config option, e.g I feel like having two toggle options for both types of the diagnostics would be overwhelming. What if you enable 2 options, are both of the diagnostic types shown at once? What if in the future there's a 3rd way added to display diagnostics? And this requires the user to think about which type of diagnostic they currently have enable and disable that one, rather than having a global option to toggle the diagnostics. I think the current implementation for diagnostics makes intuitive sense. You either enable inline diagnostics, or overlay but not both (as far as I'm aware). And then having a global option to either enable or disable diagnostics makes sense that's just my thoughts, what do you think about it? |
good point, theres also work going on to make it config streamlined and that will make it redundant.
|
Ok, I added the option |
:toggle-diagnostics
commandeditor.enable-diagnostics
option
Sometimes diagnostics can get in the way, and we'd like to temporarily hide them
this PR adds a new
editor.enable-diagnostics
option. It will hide obtrusive diagnostics, such as inline diagnostics or the diagnostics which are overlaid on top of text. In the editor, it can be toggled with:toggle enable-diagnostics
. In the config file, it can be set as follows:It won't hide gutter symbols indicating that there are diagnostics on lines, as those aren't obtrusive and it is useful to be aware that there are diagnostics on certain lines. If we want to inspect what those diagnostics are, we can just run
:toggle enable-diagnostics
again to see them.Closes #12154