The generator in https://github.com/microsoft/lsprotocol uses metaModel.json as the source of truth about the LSP protocol.
While the docs for ClientShowMessageActionItemOptions.additionalPropertiesSupport indicate that MessageActionItem objects can contain arbitrary additional attributes beyond what is shown in the spec, the description of MessageActionItem itself doesn't indicate this:
{
"name": "MessageActionItem",
"properties": [
{
"name": "title",
"type": {
"kind": "base",
"name": "string"
},
"documentation": "A short title like 'Retry', 'Open Log' etc."
}
]
},
I think it would be more standard to have an optional data field of type LSPAny, like on the Diagnostic object.
Is there any way that we can make this aspect of MessageActionItem clear in the json spec so tools that consume metaModel.json can support it correctly?
Related: