yhirose / vscode-filtertext

Filter Text extension for VS Code
MIT License
30 stars 9 forks source link

The extension thinks everything is a text and not binary #27

Open chrapuch opened 7 months ago

chrapuch commented 7 months ago

For example, if you try to process a text with "gzip | gunzip" it will throw an error saying that it's not a proper gz data. After digging a bit deeper I found that the pipe is not a real pipe. So when you gzip, the output starts with "1f8b", but the extension converts it into "1fefbfbd". Basically, it most probably converts all values from range of the 128-255 to "efbfbd".