I am developing a VSCode extension that register a custom editor, this editor uses a webview to show the file.
I am using "Buffer.toString" to read the text par