Skip to content

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

@adamwathan

Description

@adamwathan

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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions