decentraland / editor-sdk7

VSCode extension for Decentraland SDK7 projects
https://marketplace.visualstudio.com/items?itemName=DecentralandFoundation.decentraland-sdk7
MIT License
3 stars 5 forks source link

fix: remove ansii escape codes from vscode logs #101

Closed cazala closed 3 months ago

cazala commented 3 months ago

Fixes https://github.com/decentraland/sdk/issues/860

The problem was that some logs from @dcl/sdk-commands are meant for the console and they contain ansii escape codes to format the output. These don't work on VSCode's output tab, so I fltered them out using a regex that I took from StackOverflow.

Added a test too.

BEFORE:

Screenshot 2024-04-03 at 5 53 47 PM

AFTER:

Screenshot 2024-04-03 at 5 52 47 PM

github-actions[bot] commented 3 months ago

Test this pull request