Open kelvien opened 1 month ago
You’re confusing the Monaco editor types with the LSP types. The severity you’re seeing is indeed 4, but that matches MarkerSeverity.Warning
, not Hint. This is indeed displayed as a yellow squiggly line.
The goal of this project is to bring the YAML language service to Monaco editor, not to add custom logic on top of that. So in that sense I wouldn’t want to implement that in monaco-yaml
. However, I do notice that VSCode does use an error severity for JSON schema violations. I’m not sure what’s going on.
I’m currently very busy myself, but I welcome an investigation on this.
I notice that monaco-yaml shows errors as hints (shown orange/yellow) on the playground. When I check the severity level using
monaco.editor.getModelMarkers({})
, it's showing that the severity is 4 And looking at the enums ofDiagnosticSeverity
, 4 ishint
Is it possible to change it toerror
so that it's underlined with red to make the error more apparent?