rust/crates/ide-assists/src
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
..
handlers fix: Extract Function produces duplicate fn names 2022-07-02 14:24:41 -05:00
tests change 'loop to 'l, as 'loop is not a valid label name 2022-06-11 07:11:56 +08:00
utils
assist_config.rs
assist_context.rs
lib.rs Make add_label_to_loop basically work 2022-06-11 07:11:56 +08:00
tests.rs Revert the "Add attribute" assist 2022-05-20 14:39:22 +02:00
utils.rs Handle getters and setters in documentation template assist 2022-05-16 19:10:38 +02:00