You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+3-4Lines changed: 3 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -45,10 +45,10 @@ View your code's syntax tree directly
45
45
46
46
-`node` / `npm`: Used to download tree-sitter language parsers. Can be installed from [here](https://nodejs.org/en/download).
47
47
48
-
-**OPTIONAL:**`tree-sitter` / `node-gyp-build`: Used for tree-sitter language parsers that need to be locally built.
48
+
-**OPTIONAL:**`tree-sitter`: Used for tree-sitter language parsers that need to be locally built.
49
49
50
50
After installing `npm`, can be installed by running:
51
-
`npm i -g tree-sitter-cli node-gyp-build`.
51
+
`npm i -g tree-sitter-cli`.
52
52
53
53
If you don't want to install these tools, there's a good chance you don't
54
54
need them. Try the extension without it, it will notify you if they are required.
@@ -117,8 +117,7 @@ Or [create a pull request](https://github.com/selfint/code-blocks/pulls) with yo
117
117
-`codeBlocks.npmPackageName`: [NPM](https://www.npmjs.com/) package name of the `tree-sitter` parser to use for the
118
118
language. Defaults to `tree-sitter-<languageId>`, change if the package name doesn't match the languageId.
119
119
120
-
-`codeBlocks.parserName`: Filename of the WASM parser built by the `tree-sitter build --wasm` command, without the
121
-
`.wasm` extension. Defaults to `tree-sitter-<languageId>`, change if the parser filename doesn't match the languageId.
120
+
-`codeBlocks.parserName`: Name to save parser as (defaults to `tree-sitter-<languageID>`), change if the package name doesn't match the languageId (e.g., `tree-sitter-typescript` for `[typescriptreact]` languageId).
122
121
123
122
-`codeBlocks.subdirectory`: Directory inside the NPM package containing the `tree-sitter` grammar. Defaults to the
124
123
root directory of the package, change if the grammar isn't there.
0 commit comments