- changed status to open
Implement method fix adds method at wrong position
Issue #39
open
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)
-
repo owner -
repo owner - marked as enhancement
-
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
- Log in to comment
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.