cursorless-dev / vscode-parse-tree

Syntax trees for VSCode using tree-sitter
MIT License
40 stars 35 forks source link

[Feature request] Api for loading custom languages #34

Closed RedCMD closed 8 months ago

RedCMD commented 2 years ago

Would be nice to be able to load a custom language via your extension without needing to fork it

Just a single function that takes a file path to the .wasm file and a language id

Or even a way to select a builtin .wasm file while using my own custom languageId

pokey commented 2 years ago

Interesting idea. So it sounds like you'd like a function in this extension's api that you could call from another extension to register a wasm for a particular language id? Sounds easy enough. I'd be open to a PR