Although the LSP specification does not define it explicitly, from the definition of ShowMessageRequestClientCapabilities it follows that MessageActionItem can have additional fields:
messageActionItem?: {
/**
* Whether the client supports additional attributes which
* are preserved and sent back to the server in the
* request's response.
*/
additionalPropertiesSupport?: boolean;
};
However, lsprotocol does not permit this:
print(types.MessageActionItem(title="title", asdf="asdf"))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: MessageActionItem.__init__() got an unexpected keyword argument 'asdf'
(See the pygls issue)
Thanks
Although the LSP specification does not define it explicitly, from the definition of ShowMessageRequestClientCapabilities it follows that MessageActionItem can have additional fields:
However, lsprotocol does not permit this:
(See the pygls issue)
Thanks