What is the role of SupportedFeatures.java? #271
-
When code in SupportedFeatures.java enables completion with resolve does that describe the client or the server? If the server does not support this capability is it disabled in the local server capabilities configuration object? What requirements are on the client when completion with resolve is enabled? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
At first this class name comes from LSP4E. I think we should rename to ClientSupportedFeatures or à better name. This class contains all capabilities that LSP4IJ can support and those capabilities are send to language servers which must be started on initialize step. The language server can use those capability to adapt the behavior of features. For instance MP ls returns completion with documentation for ech items if the lsp client cannot support resolve completion. With LSP4IJ the MP ls will return completion without documentation since it can support resolve completion. When lsp4ij need to show documentation for the delected item it will consume the completion redolve of mp ls because mp ls can support resolve completion |
Beta Was this translation helpful? Give feedback.
-
@turkeylurkey can we close this discussion or do you need more informations? |
Beta Was this translation helpful? Give feedback.
-
Thank you for the explanation. Since the client references the server capabilities object locally I wanted to make sure the local object is correct. I agree that a rename of the class would help. |
Beta Was this translation helpful? Give feedback.
At first this class name comes from LSP4E. I think we should rename to ClientSupportedFeatures or à better name.
This class contains all capabilities that LSP4IJ can support and those capabilities are send to language servers which must be started on initialize step.
The language server can use those capability to adapt the behavior of features.
For instance MP ls returns completion with documentation for ech items if the lsp client cannot support resolve completion.
With LSP4IJ the MP ls will return completion without documentation since it can support resolve completion.
When lsp4ij need to show documentation for the delected item it will consume the completion redolve of mp ls because …