Package org.eclipse.lemminx.commons
Class DiagnosticUtils
java.lang.Object
org.eclipse.lemminx.commons.DiagnosticUtils
Utilities for
Diagnostic.- Author:
- Arun Venmany
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetDiagnosticMessage(org.eclipse.lsp4j.Diagnostic diagnostic) Extracts the diagnostic message as a String from Eitherinvalid input: '<'String, MarkupContent>.
-
Method Details
-
getDiagnosticMessage
Extracts the diagnostic message as a String from Eitherinvalid input: '<'String, MarkupContent>.In LSP4J 1.0.0, diagnostic messages can be either plain strings or rich MarkupContent. This method extracts the plain text representation from either format.
- Parameters:
diagnostic- the diagnostic- Returns:
- the diagnostic message as a String
-