You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm writing a language server. I've got so far setting up symbols, context (range) determination and hovering working. The definition provider is basically also working but there is a strange problem breaking things.
Image (1) is the test code the language server is applied to.
Image (2) is onHover called for the toInt() function.
Image (3) is onHover called for the ++ operator.
Image (4) is onDefinition called for the toInt() function.
Image (5) is onDefinition not called for the ++ operator.
The bug is thus image (5). For toInt() function both onHover and onDefinition are called but for the ++ operator only onHover is called and onDefinition is never called. The range is correct since onHover is called for ++. Why does the VSCode Node based language server not call onDefinition for some ranges onHover is called for and not others? Is a different logic used for calling onHover and onDefinition?
The text was updated successfully, but these errors were encountered:
@jrieken although LSP I think this is the default behavior in VS Code. I assume we only call on Definition only on word and not on ++ operator. Is this correct?
I'm writing a language server. I've got so far setting up symbols, context (range) determination and hovering working. The definition provider is basically also working but there is a strange problem breaking things.
First the relevant code:
And here the screenshot images referenced below:
Image (1) is the test code the language server is applied to.
Image (2) is onHover called for the toInt() function.
Image (3) is onHover called for the ++ operator.
Image (4) is onDefinition called for the toInt() function.
Image (5) is onDefinition not called for the ++ operator.
The bug is thus image (5). For toInt() function both onHover and onDefinition are called but for the ++ operator only onHover is called and onDefinition is never called. The range is correct since onHover is called for ++. Why does the VSCode Node based language server not call onDefinition for some ranges onHover is called for and not others? Is a different logic used for calling onHover and onDefinition?
The text was updated successfully, but these errors were encountered: