You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 of DiagnosticSeverity, 4 is hint
Is it possible to change it to error so that it's underlined with red to make the error more apparent?
The text was updated successfully, but these errors were encountered:
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 4And looking at the enums of
DiagnosticSeverity
, 4 ishint
Is it possible to change it to
error
so that it's underlined with red to make the error more apparent?The text was updated successfully, but these errors were encountered: