Access your code's syntax tree via node-tree-sitter.
Dynamically download and load tree-sitter parsers.
This extensions requires:
node
&npm
: Can be installed from nodejs.org (instructions).electron-rebuild
: Afternpm
is installed,electron-rebuild
can be installed bynpm i -g electron-rebuild
. In the future, this requirement will be pre-packaged in the extension.
This extension contributes the following settings:
vscode-tree-sitter.test
: View the current file's syntax tree, will download the relevant tree-sitter parser automatically.
-
Languages with
languageId
that don't match their tree-sitter parser name aren't loaded correctly. These languages need to be manually configured.Pre-configured problematic languages are:
Language LanguageId tree-sitter parser Typescript typescript tree-sitter-typescript.typescript TSX typescriptreact tree-sitter-typescript.tsx JSX javascriptreact tree-sitter-javascript
Initial release of vscode-tree-sitter!