-
Notifications
You must be signed in to change notification settings - Fork 145
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Says MessageActionItem additionalPropertiesSupport is true, but not seeing the properties #614
Comments
One of my questions is that I'm unsure if the "Result" trace above is the pure response or if it's a re-jsonification of the created MessageActionItem object. |
LSP4J does not (cannot) support additional properties for I think you need to use one of |
🙏 Thanks much for the tips! I'll look that direction. One other thing I tried doing was making my own custom method to send the same message to the client, but then it complained I had two methods with the same message type registered. Not sure if there's any way lsp4j could allow that and coordinate the response. |
I don't think it is supported. |
This was an unfortunate choice for LSP. I opened microsoft/language-server-protocol#1471 but I'm not sure when it will be addressed. |
For
MessageActionItem
, LSP and lsp4j support theadditionalPropertiesSupport
indicator.https://github.com/eclipse/lsp4j/blob/c0eaa1837900fcac5f0a991b3a33a26c6ed160b6/org.eclipse.lsp4j/src/main/java/org/eclipse/lsp4j/Protocol.xtend#L1773
I'm trying to use it to disambiguate choices, and I've subclassed
MessageActionItem
for my outgoing items as seen in this trace:I expect to see the
"value"
field back as well. And I'm not sure if vscode isn't sending it (in which case maybe my fault) or if lsp4j is converting toMessageActionItem
and then logging the equivalent json. And I haven't found a way to customize the return type in lsp4j.And vscode seems to claim to support this feature based on earlier in the trace logs:
Is it possible this issue is in lsp4j, and if so, is there a way to get back the additional properties?
The text was updated successfully, but these errors were encountered: