google / arb-editor

A VS Code extension to help with .arb files used for translation messages in software.
https://marketplace.visualstudio.com/items?itemName=Google.arb-editor
Apache License 2.0
52 stars 7 forks source link

Use editor's EOL setting for splitting/joining content to fix tests + use temp profile for tests #53

Closed DanTup closed 4 months ago

DanTup commented 4 months ago

Depending on your Git checkout settings, these tests could fail (because EOL on Windows could be \r\n but the file could've been checked out using \n, so the split would not split anything). This uses the EOL setting from the editor (which VS Code auto-detects) instead.

It also makes the tests run in a temp profile so that they are not affected by any settings of your own local VS Code install (nor will they make any modifications to the configuration of your main profile).