Open iLePix opened 3 days ago
+1
Should this also update all other existing calls? If yes this runs into UI issues similar to those of the update signature helper, if not this isn't very useful.
Should this also update all other existing calls? If yes this runs into UI issues similar to those of the update signature helper, if not this isn't very useful.
No it should only update the existing signature of the function. I disagree, since sometimes rust infers complex types that I must explicitly write out because there's no easy way to add them to already existing function arguments. I also think that creating erros at all call sites is rather a feature than a bug, since a change in the function signature has to be handled everywhere.
let's say we have the following code:
I now want to add a second argument and add the parameter to the signature automatically, via
assist
.resulting in this:
This is somewhat similar to the
assist
to generate a new function based on a function call, but instead updating the signature of an existing function. This would be especially useful when using more complex types that can be inferred.