Class completion hot keys duplicates methods within implementation
Original Reporter info from Mantis: mattlaver
-
Reporter name: Matt Laver
Original Reporter info from Mantis: mattlaver
- Reporter name: Matt Laver
Description:
When adding a new method to the interface section of a class, pressing CTRL + SHIFT + C will auto-generate the method implementation (at least this is the behaviour within the Delphi IDE).
Unfortunately in Lazarus all of the methods in the interface are created, even if there is already existing implementation methods.
Lazarus should only generate implementation methods for matching interface methods if they do not currently exist.
Steps to reproduce:
- Create a simple class.
- Add a couple of methods to the interface.
- Press CTRL + SHIFT + C and observe the implementation methods have been created.
- Now add another method.
- Now press CTRL + SHIFT + C
- Notice the duplicate implementation methods.
Mantis conversion info:
- Mantis ID: 945
- OS: Windows
- OS Build: XP SP2
- Platform: Windows XP
- Version: 0.9.6
- Fixed in version: 0.9.9 (SVN)
- Target version: 1.0.0
- LazTarget: 1.0