Open aathan opened 1 year ago
This is still an issue and very annoying. This makes not only go-to-definition bug but also (I suspect) renaming elements (with F2) which replaces the variable/function names in random places in the code if there has been changes to the files since the language server was started.
When developing solidity projects I have to reload window after almost every edit in order to keep various features like go-to-definition consistent with the content of the editor. For example, if I command-hover (on a mac obviously) over a function call site immediately after a reload-window, the correct function definition appears in the info window and/or if I then command-click, I end up at the right definition site. If I then edit the content by adding a new line of code, making lets say a new function call, the command-hover will not reflect the newly added line, and the info window that comes up when hovering over the new line of code that calls some other function will continue to show the info for the function call that was previously at the line number of the newly added line. Only a reload-window fixes the issue.