waldo1001 / crs-al-language-extension

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

crs-al disable reorganizes file #266

Open SebastiaanLubbers opened 1 year ago

SebastiaanLubbers commented 1 year ago

crs-al disable prevents renaming the object but still reorganizes the file.

For given table extension

//crs-al disable
tableextension 50400 "PRFX Functional Setup" extends "PRFX General Setup"
//crs-al enable

It prevents renaming the object "PRFX PRFX General Setup" But still moves the file out of the subfolder "src/tableextension/" into "src/"

Workspace settings:

"settings": {
    "al.codeAnalyzers": [
        "${CodeCop}",
        "${PerTenantExtensionCop}",
        "${UICop}"
    ],
    "al.enableCodeAnalysis": true,
    "al.packageCachePath": "../.alpackages/",
    "al.ruleSetPath": "../workspace.ruleset.json",
    "CRS.ExtensionObjectNamePattern": "<Prefix><BaseName>",
    "CRS.FileNamePattern": "<ObjectNameShort>.<ObjectTypeShortPascalCase>.al",
    "CRS.FileNamePatternExtensions": "<ObjectNameShort>.<ObjectTypeShortPascalCase>.al",
    "CRS.ObjectNamePrefix": "PRFX ",
    "CRS.OnSaveAlFileAction": "Reorganize",
    "CRS.SkipWarningMessageOnRenameAll": true,
    "files.exclude": {
        ".snapshots": true
    },
    "search.exclude": {
        "**/*.g.xlf": true
    }
}
kevindstanley1988 commented 1 year ago

It would be really nice if there was a "CRS.Exclude": [ 'filename', 'or directory'] to be able to define an array or files or directories to be skipped for rename/reorganize.