Skip to content

Commit 78fbe25

Browse files
authored
Update meta model for diagnostic messages and support markup content (#2260)
Update meta model
1 parent c2d0cde commit 78fbe25

2 files changed

Lines changed: 25 additions & 4 deletions

File tree

_specifications/lsp/3.18/metaModel/metaModel.json

Lines changed: 24 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9159,10 +9159,20 @@
91599159
{
91609160
"name": "message",
91619161
"type": {
9162-
"kind": "base",
9163-
"name": "string"
9162+
"kind": "or",
9163+
"items": [
9164+
{
9165+
"kind": "base",
9166+
"name": "string"
9167+
},
9168+
{
9169+
"kind": "reference",
9170+
"name": "MarkupContent"
9171+
}
9172+
]
91649173
},
9165-
"documentation": "The diagnostic's message. It usually appears in the user interface"
9174+
"documentation": "The diagnostic's message. It usually appears in the user interface.\n\n@since 3.18.0 - support for MarkupContent. This is guarded by the client\ncapability `textDocument.diagnostic.markupMessageSupport`.",
9175+
"since": "3.18.0 - support for MarkupContent. This is guarded by the client\ncapability `textDocument.diagnostic.markupMessageSupport`."
91669176
},
91679177
{
91689178
"name": "tags",
@@ -13384,6 +13394,17 @@
1338413394
},
1338513395
"optional": true,
1338613396
"documentation": "Whether the clients supports related documents for document diagnostic pulls."
13397+
},
13398+
{
13399+
"name": "markupMessageSupport",
13400+
"type": {
13401+
"kind": "base",
13402+
"name": "boolean"
13403+
},
13404+
"optional": true,
13405+
"documentation": "Whether the client supports `MarkupContent` in diagnostic messages.\n\n@since 3.18.0\n@proposed",
13406+
"since": "3.18.0",
13407+
"proposed": true
1338713408
}
1338813409
],
1338913410
"extends": [

_specifications/lsp/3.18/metaModel/metaModel.schema.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"definitions": {
44
"AndType": {
55
"additionalProperties": false,
6-
"description": "Represents an `and`type (e.g. TextDocumentParams & WorkDoneProgressParams`).",
6+
"description": "Represents an `and` type (e.g. TextDocumentParams & WorkDoneProgressParams`).",
77
"properties": {
88
"items": {
99
"items": {

0 commit comments

Comments
 (0)