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

[Bug] "textDocument/rename" renameSymbol does not handle invocation of functions with named parameters

Open DrakeEvans opened this issue 1 year ago • 2 comments

When using named function parameters during a function invocation, like foo({ bar: 42, paz: 36}). Rename action does not properly handle these named parameters

Reproduction Repo: https://github.com/DrakeEvans/tools-for-solidity-bug/blob/master/src/Counter.sol Steps:

Highlight newNumber on line 9, execute renameAction newNumber on lines 8 & 11 will be renamed but newNumber on line 15 is not.

DrakeEvans avatar May 21 '23 21:05 DrakeEvans