Skip to content

Commit cbbe4da

Browse files
committed
feat: add multiple getters mode in generate_getter
This commit adds two modes to generate_getter action. First, the plain old working on single fields. Second, working on a selected range of fields.
1 parent 4b3a810 commit cbbe4da

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

crates/ide-assists/src/handlers/generate_getter.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -216,9 +216,9 @@ pub(crate) fn generate_getter_impl(
216216

217217
// We don't insert a new line at the end of
218218
// last getter as it will end up in the end
219-
// of an impl where we would like to keep getter
220-
// and end of impl ( i.e. `}` ) with a extra line
221-
// for no reason
219+
// of an impl where we would not like to keep
220+
// getter and end of impl ( i.e. `}` ) with an
221+
// extra line for no reason
222222
if i < record_fields_count - 1 {
223223
buf = buf + "\n";
224224
}

0 commit comments

Comments
 (0)