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

Insert constructor property doesn't behave intuitively with multiple classes in one file #64

Open
adamwathan opened this issue Jan 23, 2016 · 1 comment

Comments

@adamwathan
Copy link

Often times in tests I define little throwaway classes at the bottom that are only used in that test. The "insert constructor property" command seems to always insert the property in either the first constructor in the file if there's already a constructor somewhere, or the first class in the file if none of the classes have a constructor.

It would be super nice if it looked for the first class or constructor definition above wherever the cursor is 👍

companion-injection

@erichard
Copy link
Owner

I mark this as an enhancement as it a real use case and not just a bug.

I will not work on this myself as I never write two classes in the same file but I let this open for anyone.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants