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

Rename/Reorganize Issue with permission sets #205

Open ChrisBlankDe opened 3 years ago

ChrisBlankDe commented 3 years ago

Renameing and reorganizing Permission Sets does not work well. I have an app with just one permission set:

Object:

permissionset 50100 "abc"
{
    Assignable = true;
    Permissions = TableData "AAD Application" = RIMD; //just an example
}

Settings:

{ //workspace
    "CRS.AlSubFolderName": "src",
    "CRS.ObjectNamePrefix": "PTE",
    "CRS.RemovePrefixFromFilename": true,
    "CRS.FileNamePattern": "<ObjectNameShort>.<ObjectTypeShortPascalCase>.al",
    "CRS.FileNamePatternExtensions": "<ObjectNameShort>.<ObjectTypeShortPascalCase>.al",
}
{ //global
    "CRS.DisableCRSSnippets": false,
    "CRS.DisableDefaultAlSnippets": true,
    "al.enableCodeActions": true,
    "CRS.DependencyGraph.ExcludePublishers": []
}

wenn running reorganize file will not be renamed, prefix will not be added to object name and the file will not be moved to the right folder(just src not src/permissionset).

My Demo Project: crsbug01.zip Tested with:

Rename and reorganize works fine with other objecttypes.