Closed andy-wong-andy-wong closed 1 week ago
You can try it in VSCode. If the same problem could be reproduced there, then I suspect that this is the issue of tsserver, and should be reported to TypeScript.
Closed due to inactivity. Feel free to reopen one if more information could be provided, like a reproducible example.
I'm not sure if this is a vtsls/typescript-language-server issue, or a LSP4J issue, but it seems like there are some references that don't get captured when I try to access the code references via
LanguageServer.textDocumentService.references
.However, this only retrieves the first reference of the variable. There are other instances of the references that are not retrieved. The particular issue is in a React Typescript file. The file contains the following:
LSP4J only seems to capture the first reference, and does not grab the second instance.