"Go to definition" doesn't work for token has union of rules #1548
-
Hi there, I'm implementing a TS-like language including type alias: type MyType = something
// ^ can be a built-in type, inline type definition or a type reference To achieve it, here is partial of my grammar:
I expect that But in VSCode extension, there is no "Go to definition" action (and others) on |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hey @jindong-zhannng, are you sure that the language server is running and that VS Code associates the language to the language client? It looks to me like like it doesn't. There are quite a few missing context menu entries that should be added if the language server is running. Note that I've tried reproducing this in the playground and it seems to work. So it's more likely an issue in the VS Code/language server configuration. |
Beta Was this translation helpful? Give feedback.
Hey @jindong-zhannng,
are you sure that the language server is running and that VS Code associates the language to the language client? It looks to me like like it doesn't. There are quite a few missing context menu entries that should be added if the language server is running.
Note that I've tried reproducing this in the playground and it seems to work. So it's more likely an issue in the VS Code/language server configuration.