cursorless-dev / vscode-parse-tree

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

Api for registering custom languages #43

Closed RedCMD closed 1 year ago

RedCMD commented 1 year ago

Allows loading a custom wasm file and assigning it to a custom language id Usage: registerLanguage(languageId, wasm) with wasm being a absolute path to the .wasm file or the languageId of a builtin .wasm file

Can overwrite the built in languages with custom wasms Can register a custom language id with one of the built in wasms

Automatically reloads all open documents if their language changes

https://github.com/cursorless-dev/vscode-parse-tree/issues/34

RedCMD commented 1 year ago

Can register with registerLanguage(languageId, wasm); if the languageId already exists. it simply returns nothing (does not overwrite)

RedCMD commented 1 year ago

ping? @pokey

pokey commented 1 year ago

Released in 0.23.0; out in the next 5–10 minutes