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

Not analyzing file dep until opened in an editor window

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

@alcuadrado reported this in the openzeppelin repo:

I'm using OZ Contracts for the navigation test If I open this file in a new vscode process, after indexing, contracts/token/ERC777/IERC777.sol, and cmd-click on the abstract function granularity it doesn't take me anywhere If I then open its implementation contracts/token/ERC777/ERC777.sol, it starts working

This may be a timing issue related to indexing in a large repo.

kanej avatar Mar 09 '22 09:03 kanej

I think this is related to an issue @fvictorio where the "Find Usages" seems not to be updated after an edit on a large repo (the balancer repo). We should look at how our indexing and updates to it perform in larger repos.

kanej avatar Mar 09 '22 09:03 kanej

We have reworked this code several times since then. If we get a report related to editor windows we will open a new issue.

kanej avatar Jan 02 '23 16:01 kanej