leodevbro / vscode-blockman

VSCode extension to highlight nested code blocks
https://github.com/leodevbro/vscode-blockman
MIT License
345 stars 16 forks source link

replacing Node fs with vscode.workspace.fs #49

Open leodevbro opened 2 years ago

leodevbro commented 2 years ago

@CoenraadS, As you suggested, vscode.workspace.fs works fine in all the areas of the source code as an alternative of Node fs, but there is just one persistent problem with loading the wasm file.

As you can see, both Node fs and vscode.workspace.fs prints the buffer, but in different length and different encoding. So, there comes the error as you see in the screenshot.

Any ideas what can we do about it?

2021-11-02_19-47-23