longkai / kubernetes-yaml-formatter

Kubernetes Style YAML Formatter for Visual Studio Code
MIT License
41 stars 3 forks source link

Do not convert emoji #2

Closed kpocius closed 2 years ago

kpocius commented 2 years ago

Not sure if this is a bug or a feature request and whether it's actually an issue with the upstream, but the extension messes with the code if there are emojis in it.

For example:

- test: |
    🔥

Becomes:

- test: "\U0001F525\n"

This is particularly a problem if you have complex scripts that include emojis -- it converts the entire thing into a single-line string.

longkai commented 2 years ago

Thanks for the feedback!

I investigated and found how to implement it. Wait for the next release!

longkai commented 2 years ago

Just released 1.1.0 to the marketplace, thanks for the feedback!