Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automatically add file file top module tree or display option to do so. #5488

Closed
FelixBrakel opened this issue Jun 3, 2020 · 0 comments · Fixed by #5490
Closed

Automatically add file file top module tree or display option to do so. #5488

FelixBrakel opened this issue Jun 3, 2020 · 0 comments · Fixed by #5490
Labels
feature subsystem::IDE Issues related to general IDE functionality (tool windows, actions, etc.)

Comments

@FelixBrakel
Copy link

Currently when you create a new .rs file in a project it will give you the following notification:

Screenshot_20200603_131403

Which is nice. However I thought it would be nice for this notification to include a button to automatically add the following statement to the corresponding mod.rs file (Or whatever the module file is when using the rust 2018 syntax).

mod scene

Such that the file scene.rs is included in the module tree.

Or automatically write this statement when a new .rs file is created. I can't really see a scenario where you wouldn't want to add a file to the module tree so I would personally prefer the latter option but I wouldn't presume to know other people's workflow so the former option might be better because it's less intrusive.

@Kobzol Kobzol added feature subsystem::IDE Issues related to general IDE functionality (tool windows, actions, etc.) labels Jun 3, 2020
@bors bors bot closed this as completed in e7e15ab Jun 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature subsystem::IDE Issues related to general IDE functionality (tool windows, actions, etc.)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants