Change method signature in vscode

I was curious if there was in vscode + rust analyzer the same "Change signature" function that IntelliJ offers with the Rust plugin.

image

I had bad args order in a method, but I was using it everywhere, and I was not looking forward to fixing that by hand and making a mistake.

So even though I'm usually on vscode, I opened IntelliJ for that. It worked really well but would be cool if we can also do so from withing VSCode.

Thanks in advance.

1 Like

There is already an open issue for that: Feature request: refactor support for adding a new argument · Issue #6499 · rust-lang/rust-analyzer · GitHub

It seems that LSP and vscode don't have the necessary interfaces for presenting such a dialog.

2 Likes

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.