JJLongoria / aura-helper

Repository for manage the development of Aura Helper VSCode Extension
GNU General Public License v3.0
9 stars 5 forks source link

Lines between methods and class attributes removed #41

Closed fanch-ragon closed 2 years ago

fanch-ragon commented 2 years ago

Hello, sorry to interrupt again.

Since last version I noticed that lines between methods and/or class attributes are removed, regardless of the newLinesBetweenCodeBlockMembers setting. Is this a behavior you can replicate on your side as well? For instance, if I format this code:

public class TestClass {

    static boolean bool1 = false;

    static boolean bool2 = true;

    public static void test1(String test1) {
    }

    public static void test2(String test2) {
    }
}

I will get this result, despite newLinesBetweenCodeBlockMembers = 1 :

public class TestClass {
    static boolean bool1 = false;
    static boolean bool2 = true;
    public static void test1(String test1) {
    }
    public static void test2(String test2) {
    }
}

I would more have expected this result, if I am not wrong?

public class TestClass {
    static boolean bool1 = false;

    static boolean bool2 = true;

    public static void test1(String test1) {
    }

    @AuraEnabled
    public static void test2(String test2) {
    }
}
JJLongoria commented 2 years ago

hi @fanch-ragon

Indeed, it is an unexpected behavior of the formatting option you mentioned. I just publish a new fix version that fixes the problem. Sorry for the delay in answering, these dates, the family, the holidays ... you know.

PD: Not apologize to help me to improve Aura Helper, your reports are valius to found errors or unexpected behaviours like this.

Enjoy it! Regards.

fanch-ragon commented 2 years ago

No issue, thanks for the quick fix once again :)

Regards