For unlinked files, add option to add "pub mod" instead of just "mod" #8228
Labels
A-assists
A-diagnostics
diagnostics / error reporting
E-easy
S-actionable
Someone could pick this issue up and work on it right now
It seems to be a pretty common pattern to have mod.rs files that are just a bunch of
pub mod x
,pub mod y
etc., so it would be nice when you create an unlinked file and use the code action from rust-analyzer, if in addition toInsert 'mod x;',
it would have aInsert 'pub mod x;'
option. Super useful feature already, just think this would make it even better :)Also you guys probably hear this a million times a day but rust-analyzer is amazing; it's totally changed the rust experience for me, and the pace of development is unreal.
The text was updated successfully, but these errors were encountered: