hardhat-vscode icon indicating copy to clipboard operation
hardhat-vscode copied to clipboard

Deal with starting reference in find references

Open kanej opened this issue 3 years ago • 0 comments
trafficstars

Find references should include the definition node (e.g. the function definition + the function usages). This means there is never just one reference, so find references does not jump to the one reference.

In typescript however, if there are is only one usage, the jump works. If there are two usages the 3 entries (definition + 2 usages appear).

We should imitate this behavior. We need to dig in and find our whether the ref list is varied to get the behavior or we need extra metadata against each returned ref for vscode to automatically provide that behavior.

kanej avatar Jan 07 '22 11:01 kanej