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?
Q1. If the LSP server issues
window/showMessageRequestwith theactions = ['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/showMessageRequestwith theactions?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/showMessageRequestshould be "the selected MessageActionItem". If the server happened to send aMessageActionItemwhich contained additional fields beyond just the specifiedtitle, is the client required to parrot those extra fields back to the server too?