vscode-yaml icon indicating copy to clipboard operation
vscode-yaml copied to clipboard

How to disable warning/error in problem section?

Open avraam-inside opened this issue 1 year ago • 2 comments

Hi!

In the problems section, I get an incomprehensible error:

"code": "KEY_OVER_1024_CHARS",
"message": "The : indicator must be at most 1024 chars after the start of an implicit block mapping key at "

image

The problem is that I just commented out a piece of code, and the fact that now the file is colored red, screams with an error, etc. - very much prevents me from focusing on work.

In extensions like pylint/etc, you can disable specific PEPs and it works fine. Unfortunately, I don't understand how to turn off specific YAML errors.

How do I turn off this warning/error? Thanks.

avraam-inside avatar Apr 22 '23 11:04 avraam-inside

I’d like to know the same but afraid this is not possible atm…

gremo avatar Jun 17 '23 00:06 gremo

Looks like this is related to https://github.com/eemeli/yaml/issues/413. We have already shipped with the fixed version of the parser. What is the vscode-yaml version that you encounter this issue with?

gorkem avatar Jun 18 '23 17:06 gorkem