Getting the default hover provider to work #410
Replies: 1 comment 2 replies
-
Hi @ballcoach12, our behavior to identify what a "multiline comment" exactly is differs a bit from Xtext. While Xtext uses convention, i.e. "search for a token named On the unbound breakpoint issue: Are you attaching to your language server process, or only debugging the vscode extension? Since the language server runs in a separate process, you need an additional launch config to debug it. See this for example. |
Beta Was this translation helpful? Give feedback.
-
I'm wondering what I need to do in order to get the default hover provider implementation to work. I suspect that it should just work out of the box when I start up the language server. I notice that it works fine in the VS Code extension for the langium grammar language.
I am tracing the lsp messages between the client and server, and I can see that the editor sends the textDocument/hover request, but the message is always 'No result returned.' I suspect that either the MultilineCommendHoverProvider is not getting called, or that no content is being returned from the getAstNodeHoverContent() function. I suspect the former, but I'm not able to set a debug breakpoint in that function; VS Code always says 'unbound breakpoint'.
In summary, I'm wondering if there is anything special that I need to do to get this to work in 0.2.0. I have a multi-line comment in my grammar for my AST root node, so I would hope that the contents of that comment would be returned.
Beta Was this translation helpful? Give feedback.
All reactions