Skip to content

clarification: what response to ShowMessageRequest in edge cases? #230

@ljw1004

Description

@ljw1004

Q1. If the LSP server issues window/showMessageRequest with the actions = ['hello'], should the client show a normal Close button (in whatever way is standard for the OS, e.g. a cross to the top right) in addition to the Hello button? If the user clicks this Close glyph, then what should be sent as the result?

Q2. If the client shouldn't show a normal Close button by default, then is there any way for the LSP server to request one to be shown?

Q3. If the LSP server issues window/showMessageRequest with the actions? field set to empty, what is the result? The documentation says the result is "the selected MessageActionItem". Should the client send back an error message as soon as a request is received with empty actions field? (If so, then why is the actions field marked as optional?)

Q4. The spec says that the response to window/showMessageRequest should be "the selected MessageActionItem". If the server happened to send a MessageActionItem which contained additional fields beyond just the specified title, is the client required to parrot those extra fields back to the server too?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions