RasmusTidselbak / al-var-helper

6 stars 6 forks source link

Sorting variables removes first function name in al file #35

Open sybrenwille opened 3 years ago

sybrenwille commented 3 years ago

When you sort your variables the first function is removed.

Prerequisites for bug:

codeunit 50000 "AL Var Helper Sorting Bug" 
{ 
    var 
        Variable: Text; 

    [Scope('OnPrem')] 
    procedure SampleProcedure(CurrencyCode: Code[10]; PostingDate: Date)  
    var 
        Currency: Record Currency; 

    begin 

    end; 

} 

After sorting:

codeunit 50000 "AL Var Helper Sorting Bug" 
{ 
    var 
        Variable: Text; 

    [Scope('OnPrem')] 

    var 
        Currency: Record Currency; 

    begin 

    end; 

}