Open UncleGrandpa925 opened 2 years ago
@UncleGrandpa925 just to confirm the particular issue is with navigation from the type usage to its underlying declaration:
I am able to reproduce a failed navigation if that is the case.
Yes I'm referring to the type!
To give an update, this is a bug we can reproduce (thanks for the reproduction steps @UncleGrandpa925).
Our understanding is that we aren't getting enough information from our parser to deal with the nested type, the solution is likely to enhance solidity-parser
with the extra info and then fix the navigation.
I'll update this ticket when we tackle the solidity-parser
work.
Not sure if this is the intended behaviour (at this version) or not, but I will just put it here since I think it's a necessary feature.
For example, with the following statement, It's not possible to go to the TokenQtys definition.
As a result, it's also not possible to do variable renaming on the struct's members.
Steps to reproduce: Using this https://github.com/code-423n4/2022-01-elasticswap & navigate to Exchange.sol & try going to the definition of tokensQtys.
Environment: VSCode Version: 1.63.2 (Universal) on macOS & Hardhat VSCode version v0.0.21