Skip to content

It's not clear from metaModel.json that MessageActionItem can contain arbitrary additional fields #2148

Open
@debonte

Description

@debonte

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:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions