hardhat-vscode
hardhat-vscode copied to clipboard
Navigation is blocked by parser failures
trafficstars
If a user edits a file and leaves the code such that the solidity-parser errors, then we lose code navigation in that file.
Reproduction Steps
https://user-images.githubusercontent.com/24030/173074968-43eaebd0-7657-49e7-aa05-9b3aa543680a.mov
Options
- use a more tolerant parser (slang)
- make
solidity-parsermore tolerant - retain the previously working ast, and use that for navigation
This issue is also being tracked on Linear.
We use Linear to manage our development process, but we keep the conversations on Github.
LINEAR-ID: a3aad1a0-a0cb-413e-92d0-4757c5091526