Skip to content

Default cleanup range 'Current class' does not work (as expected?) #62

Closed

Description

@ConjuringCoffee

Hi Jörg-Michael,

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:

CLASS ycl_cleaner_example DEFINITION
  PUBLIC
  FINAL
  CREATE PUBLIC .

  PUBLIC SECTION.
    methods example.
  PROTECTED SECTION.
  PRIVATE SECTION.
ENDCLASS.



CLASS ycl_cleaner_example IMPLEMENTATION.
  METHOD example.

  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:

image

Is this a bug or am I just misinterpreting the option?

Activity

  1. 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
  2. jmgrassau commented on Jun 14, 2023

    @jmgrassau
    Member

    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

  3. self-assigned this
    on Sep 22, 2023
  4. jmgrassau commented on Sep 22, 2023

    @jmgrassau
    Member

    Hi ConjuringCoffee,

    FYI, I now enhanced the documentation on the Default cleanup range accordingly.

    Kind regards,
    Jörg-Michael

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

documentationImprovements or additions to documentation

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions