rust-analyzer/crates/ide-assists
Dorian Scheidt 0039d6f731 fix: Extract Function produces duplicate fn names
This change fixes issue #10037, in more or less the most naive fashion
possible.

We continue to start with the hardcoded default of "fun_name", and now append a
counter to the end of it if that name is already in scope.

In the future, we can probably apply more heuristics here to wind up with more
useful names by default, but for now this resolves the immediate problem.
2022-07-02 14:24:41 -05:00
..
src fix: Extract Function produces duplicate fn names 2022-07-02 14:24:41 -05:00
Cargo.toml internal: Bump Dependencies 2022-06-10 17:30:02 +02:00