anzwdev / al-code-outline

AL Code Outline for Visual Studio Code
MIT License
51 stars 14 forks source link

Code Cleanup - Incorrect format (additional spaces) #585

Open DennyHW opened 5 months ago

DennyHW commented 5 months ago

Starting from this code, when i run code cleanup features, additional spaces are added to the selected lines

immagine

This is the result

immagine

The code is from a TableExtension of "Requisition Line"

modify("Currency Factor") { trigger OnBeforeValidate() begin if Rec.IsPurchaseRequest() then begin Rec."Currency Factor" := xRec."Currency Factor"; // Skip Direct Unit Cost assignement if (Rec."Currency Code" <> '') and (Rec."Currency Factor" = 0) and (Rec."Direct Unit Cost" = 0) then Rec."Currency Factor" := 1; // Skip Testfield end; end; }

Those are the settings I'm using:

"alOutline.defaultRemoveEmptySectionsSettings": {
"removeActionGroups": true, "removeActions": true, "ignoreComments": false },
"alOutline.defaultAppArea": "All", "alOutline.defaultDataClassification": "CustomerContent", "alOutline.codeCleanupActions" : [
"AddEnumValuesCaptions", "AddObjectCaptions", "AddTableFieldCaptions", "AddMissingParentheses", "ConvertObjectIdsToNames", "FixIdentifiersCase", "FixKeywordsCase", "MakeFlowFieldsReadOnly", "OneStatementPerLine", "RemoveStrSubstNoFromError", "RemoveProceduresSemicolon", "TrimTrailingWhitespace" ], "alOutline.fixCaseRemovesQuotesFromDataTypeIdentifiers": false, "alOutline.fixCaseRemovesQuotesFromNonDataTypeIdentifiers": true,

"alOutline.codeActionsOnSave": ["OneStatementPerLine"], "alOutline.fixCodeCopMissingParenthesesOnSave": true

Thanks