jasonwilliams / vscode-helix

MIT License
177 stars 9 forks source link

Owlbear dependency? #28

Open david-morris opened 2 months ago

david-morris commented 2 months ago

The readme mentioned that some of the limitations of this extension are caused by VSCode not exposing the AST.

That makes sense. To get the AST ourselves, we'd either have to get a job at Microsoft, or build Tree-Sitter as a WASM and figure out how to get it working inside a VSCode addon.

Fortunately, someone's already done the latter. It's called owlbear and I am curious as to whether the two addons could tap into each others' communities.

jasonwilliams commented 2 months ago

That's interesting, thank you. Getting a job at Microsoft is not necessary btw, they are working on Tree Sitter support https://github.com/microsoft/vscode/issues/210475

david-morris commented 2 months ago

I don't understand; that looks like they want to use tree-sitter for syntax highlighting? I don't see anything in that issue about exposing the AST to addons.

jasonwilliams commented 2 months ago

Syntax highlighting is indeed the first step, I believe the long term plan is to have some way to expose it to extensions