waldo1001 / crs-al-language-extension

Make working with the (Dynamics NAV / 365) AL Language easier and more efficient.
MIT License
34 stars 43 forks source link

Bug: Field Numbers of Table Extension get prefixed now #250

Closed DanielGoehler closed 2 years ago

DanielGoehler commented 2 years ago

Currently CRS (1.5.13) prefixes also Field Numbers...

My settings.json:

{
    "CRS.ObjectNamePrefix": "Prefix ",
    "CRS.OnSaveAlFileAction": "Rename"
}

What I enter:

tableextension 50006 "Prefix Sales Cr.Memo Header" extends "Sales Cr.Memo Header"
{
    fields
    {
        field(50021; "Prefix Test Field"; Code[20])
        {
            Caption = 'Test Field';
            DataClassification = CustomerContent;
        }        
}

What CRS makes of it:

tableextension 50006 "Prefix Sales Cr.Memo Header" extends "Sales Cr.Memo Header"
{
    fields
    {
        field("Prefix 50021"; "Prefix Test Field"; Code[20])
        {
            Caption = 'Test Field';
            DataClassification = CustomerContent;
        }        
}
waldo1001 commented 2 years ago

Thanks for noticing - I'm on it!

waldo1001 commented 2 years ago

Hm, I don't seem to be able to repro it :-/.

waldo1001 commented 2 years ago

I wasn't able to repro it, but I've put an additional check to prevent this behavior..

waldo1001 commented 2 years ago

vv1.5.14 is online - would be great that you report back...

DanielGoehler commented 2 years ago

Issue is gone. Thanks.