Implement method fix adds method at wrong position

Issue #39 open
Sorien created an issue

when you let vscode to fix missing method (light bulb -> implement TFoo.Faa) it will add method to the end of file but it should add it between methods of same class in right position based on name or maybe better by visibility and name

Comments (3)

  1. Christopher Wosinski repo owner
    • changed status to open

    In some cases I'm with you. In other cases I just want to add methods at the end. There should be a config parameter that defines the behaviour. Some people want constructors to stay on top, destructors at the end, public methods over private and protected methods etc.

    For now it works as intended. But it's definitely a valid feature request.

  2. Jose Leon

    Apart from that, if you have a {$R *.dfm} after your implementation, the first procedure is added just “before” the {$R} instead “after” it.

    Actual

    Expected

  3. Log in to comment