Skip to content

WiP PoC of tree sitter on client side

Mikołaj Wawrzyniak requested to merge mwaw/poc_tree_sitter_in_extension into main

This MR represents PoC for including tree sitter via WebAssembly into VS Code extension (and possibly LSP server).

It follows https://github.com/tree-sitter/tree-sitter/tree/46af27796a76c72d8466627d499f2bca4af958ee/lib/binding_web and uses https://www.npmjs.com/package/web-tree-sitter?activeTab=readme

It only works for desktop distribution so far

To test is localy run extension and check its logs for following output (error log level is intentional to make sure logs are easy to spot out of all additional debug lines)

...
2023-09-14T15:02:02:836 [error]: ["// Version is the current version of gitlab-shell","// Set at build time in the Makefile","// BuildTime signifies the time the binary was build","// Set at build time in the Makefile","// Startup monitoring endpoint."]

Loggs will display all comments that starts with capital letter above the cursor in currently active editor

Edited by Mikołaj Wawrzyniak

Merge request reports