rvanbekkum / vsc-xliff-sync

Visual Studio Code extension that allows for automatic merging of (simple) XLIFF translation files.
MIT License
23 stars 4 forks source link

feat: add ability to define empty tag format #110

Closed warlof closed 1 year ago

warlof commented 1 year ago

add a new setting called useSelfClosingTags which allow to define how empty tag must be write while generating new XLIFF synchronized files.

its default value is true meaning empty tag will use self closing format (<note/>) - as it was the case prior this change.

when set to false, empty tag will be write using opening and closing format (<note></note>).

as an example, AL Compiler is using the opening and closing format instead the self-closing one. using this extension current version with AL project is then generating excessive git diff for small changes since all empty tags are updated to the self-closing format.

references :

Closes #97

rvanbekkum commented 1 year ago

Thank you for the PR. I have already checked the contents and it looks good. I will probably merge/release it next weekend (after Directions EMEA in Hamburg).

warlof commented 1 year ago

Hello there, just a small bump about this PR