SPARQL Studio API / SparqlUtils / parseLanguageServerError
Function: parseLanguageServerError()
parseLanguageServerError(
message):ParsedLspError
Defined in: sparql-utils/src/errorNotification.ts:133
Split a language-server error message into a label + description.
qlue-ls typically formats errors as a short label followed by a quoted (JSON-encoded) detail, e.g. Completion query request failed + "Query failed! ... \nJsValue(...)". When that shape is found the label is the text before the first quote and the description is the unescaped quoted detail. Otherwise the first line becomes the label and the rest the description; a long single line is kept as the label, truncated on a word boundary, with the full text as the (expandable) description.
Parameters
message
string