Skip to content

Commit b7eeb73

Browse files
committed
Update read me with tree-sitter-wasms info
1 parent 92af5cf commit b7eeb73

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,12 @@ registerLanguage(languageId, wasmPath);
4343

4444
It's straightforward to add any [language with a tree-sitter grammar](https://tree-sitter.github.io/tree-sitter/).
4545

46-
1. Add a dependency on the npm package for that language: `yarn add -D tree-sitter-yourlang`.
46+
1. First you need to add the package for that language to the [WASMs repo](https://github.com/cursorless-dev/tree-sitter-wasms). Submit a pull request to that repository, with the npm package for your language's tree-sitter added using `pnpm add -D tree-sitter-yourlang`, and wait for a new version to be released. It should be very quick.
4747
2. Add a language to the dictionary at the top of `./src/extension.ts`
4848
3. Add a reference to `onLanguage:yourlang` to the [activationEvents section of package.json](package.json). `yourlang` must be a [VSCode language identifier](https://code.visualstudio.com/docs/languages/identifiers).
49-
4. Add your language to the top of the [Makefile](Makefile)
50-
5. Run `yarn compile`, then hit `F5` in VSCode, with this project open, to test your changes.
51-
6. Submit a PR!
49+
4. Update the `tree-sitter-wasms` dependency version in the `devDependencies` section of packages.json
50+
6. Run `yarn compile`, then hit `F5` in VSCode, with this project open, to test your changes.
51+
7. Submit a PR!
5252

5353
### Developing on WSL2
5454

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,5 +141,6 @@
141141
"jsonc-parser": "^2.1.0",
142142
"tar": ">=4.4.2",
143143
"web-tree-sitter": "^0.24.6"
144-
}
144+
},
145+
"packageManager": "[email protected]+sha512.5383cc12567a95f1d668fbe762dfe0075c595b4bfff433be478dbbe24e05251a8e8c3eb992a986667c1d53b6c3a9c85b8398c35a960587fbd9fa3a0915406728"
145146
}

0 commit comments

Comments
 (0)