https://github.com/selfint/vscode-tree-sitter
https://github.com/selfint/vscode-tree-sitter
Last synced: 12 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/selfint/vscode-tree-sitter
- Owner: selfint
- License: mit
- Created: 2023-06-15T10:12:43.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-06-30T23:09:56.000Z (almost 3 years ago)
- Last Synced: 2025-04-08T12:50:51.161Z (about 1 year ago)
- Language: TypeScript
- Size: 412 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# vscode-tree-sitter
Access your code's syntax tree via [node-tree-sitter](https://github.com/tree-sitter/node-tree-sitter).
## Features
Dynamically download and load tree-sitter parsers.
## Requirements
This extensions requires:
- `node` & `npm`: Can be installed from [nodejs.org](https://nodejs.org/en/download) ([instructions](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm)).
- `electron-rebuild`: After `npm` is installed, `electron-rebuild` can be installed by `npm i -g electron-rebuild`.
In the future, this requirement will be pre-packaged in the extension.
## Extension Settings
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.
## Known Issues
- 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 |
## Release Notes
### 0.0.1
Initial release of vscode-tree-sitter!