You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Default cleanup range 'Current class' does not work (as expected?) #62
I have found that the default cleanup range "Current class" does not work the way I expected it to. Here's a global class as an example:
CLASSycl_cleaner_example DEFINITION PUBLIC FINAL CREATE PUBLIC .
PUBLIC SECTION.
methods example.
PROTECTED SECTION.
PRIVATE SECTION.
ENDCLASS.
CLASSycl_cleaner_example IMPLEMENTATION.
METHODexample.
ENDMETHOD.
ENDCLASS.
If I place my cursor inside the method implementation, then I would have expected the cleanup range to target the entire class. However, it only applies to the method:
Is this a bug or am I just misinterpreting the option?
changed the title [-]Default cleanup range does not work (as expected?)[/-][+]Default cleanup range 'Current class' does not work (as expected?)[/+]on Jun 14, 2023
yes, you're right – but it's not really a bug: In includes, you do not always have the class DEFINITION directly next to the IMPLEMENTATION (but rather, three different classes may be defined before then the three implementations follow); but the cleanup range currently is a single range of lines only.
Activity
[-]Default cleanup range does not work (as expected?)[/-][+]Default cleanup range 'Current class' does not work (as expected?)[/+]jmgrassau commentedon Jun 14, 2023
Hi ConjuringCoffee,
yes, you're right – but it's not really a bug: In includes, you do not always have the class DEFINITION directly next to the IMPLEMENTATION (but rather, three different classes may be defined before then the three implementations follow); but the cleanup range currently is a single range of lines only.
Kind regards,
Jörg-Michael
improve documentation for cleanup range 'Current class' (SAP#62)
improve documentation for cleanup range 'Current class' (#62)
jmgrassau commentedon Sep 22, 2023
Hi ConjuringCoffee,
FYI, I now enhanced the documentation on the Default cleanup range accordingly.
Kind regards,
Jörg-Michael