-
Notifications
You must be signed in to change notification settings - Fork 29.7k
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
Provide the ability to disable warning/error squiggles #194392
Comments
Couple things... You can disable the light bulb with: For the squiggles you can make them transparent with (in this case the errors):
|
Sorry maybe I wasn't clear. I was mainly suggesting to have an easy way to toggle the warnings between on/off (mainly as a way to avoid warnings while typing) The screenshots were for an example from the C++/C extension where this feature is available for errors, so the request is to have a similar switch for all languages to easily toggle warnings/errors on and off (preferably, a separate toggle for warnings and another for errors) |
Yes, "colorCustomizations" is the hack how to do it now: https://stackoverflow.com/questions/43454967/disable-wavy-underline-in-vs-code (to a question with 120k views) Is it the best way to do it? No.
"workbench.colorCustomizations": {
"editorError.background": "#ffffff00",
"editorError.border": "#ffffff00",
"editorError.foreground": "#ffffff00",
"editorWarning.background": "#ffffff00",
"editorWarning.border": "#ffffff00",
"editorWarning.foreground": "#ffffff00",
} easier to change than a single boolean setting, something like this "editor.problemHighlight": false,// add squiggles/wavy/border keywords to settings description No.
|
Slightly related - I've had a request a few times to have error squiggles just debounced until you stop typing for a while. While it's possibly to try and handle this in each languages language server, it seems silly to do it there rather than VS Code when the same complaint (it's distracting for squiggles while I'm typing - of course the code is invalid while I'm typing) exists for all languages (including TypeScript) :-) |
I've actually filed that request in 2018 💀 #63737 Configurable delay for problem diagnostics. The response - every extension should handle it by itself. |
This feature request is now a candidate for our backlog. The community has 60 days to upvote the issue. If it receives 20 upvotes we will move it to our backlog. If not, we will close it. To learn more about how we handle feature requests, please see our documentation. Happy Coding! |
Is this not a dup of #166797? |
closing as duplicate - main issue tracked in comment above |
@osaxma , this feature was recently added as a preview/experimental feature, which is subject to re-haul/change. Please check out |
Hi @justschen Thank you for the follow up and implementation 🙏🏽.. It's working as desired. Will toggling the visibility be available in the command palette once it is officially released? |
While warning squiggles are useful, sometimes they just get in the way when the code is being heavily edited, and the process of writing code becomes quite distracting with squiggles appearing and disappearing as one types.
I would like to be able to disable/enable warnings/errors of the Analysis Server using the command palette with such commands:
I think it's useful to disable each level separately since errors are much useful type of a feedback than warnings (especially with pedantic lints used by some projects).
Additional Context:
The feature is already part of C/C++ extension by Microsoft but it would be nice to have it as an Editor Feature instead of language server feature so it'll be available for all languages:
The text was updated successfully, but these errors were encountered: