"Generate getter/setter" is too opinionated #12273
Labels
A-assists
C-feature
Category: feature request
S-actionable
Someone could pick this issue up and work on it right now
Given
the "Generate getter/setter" assist can generate the following 3 methods:
However, there's no configuration for how these should look, so we impose some odd idiosyncrasies on users, such as:
Generated docs require manual editing, which can arguably be worse than no docs because it creates more work for the programmer (the docs are also spelled weirdly)The assist no longer generates docs#[must_use]
, which is "weird" – it makes Rust even more boilerplate-heavy and adds visual noise.#[inline]
but users might want that, at least when the type in question has no generic type/const parameters.This leads to people (me) not using the assist because their handwritten code would differ too much from what the assist generates.
We should add a config section for this group of assists and make each of these points configurable. The defaults should possibly be changed as well.
The text was updated successfully, but these errors were encountered: