Closed Symbolk closed 3 years ago
Perhaps this is already known, but FWIW, it was at one point possible to build vscode extensions that make use of wasm bits. An advantage of such an approach is that there is only one build.
IIRC, that ends up using web-tree-sitter instead of node-tree-sitter though.
Here is an example (deprecated) extension that did that: https://github.com/georgewfraser/vscode-tree-sitter
I'm still doing that here https://github.com/elm-tooling/elm-language-server
For your question on 2. that's not possible, see https://github.com/microsoft/vscode/issues/23251
However, some extensions are shipping binaries, by having the client download them depending on the OS/ARCH
Thanks, by rebuilding it under Windows with windows-build-tool, now I am able to install and run it under windows vscode, although other errors follow.
For now I decide to release the different versions from different platforms on GitHub. Let's see if there are better solutions.
Hi, I developed a VSCode extension to help developers handle merge conflicts, which depends on node-tree-sitter. Its name is
SoManyConflicts
, the source is open at https://github.com/Symbolk/somanyconflicts and the extension can be downloaded in VSCode Market.Since node-tree-sitter is a native module and should be built on specific platform, the extension works fine for macOS (which it is original built upon) but fails to activate on Windows, with the error message:
I and trying to rebuild it under Windows but encountered lots of problems with
windows-build-tools
, but once it works, it means that my users have to rebuild the extension from source to install it. Therefore, I am wondering:vsix
file targeting at different platforms for one extension? And