Skip to content

Commit 75b2fed

Browse files
committed
Replace tree-sitter-wasms with tree-sitter-wasms-roo
1 parent 00b82fd commit 75b2fed

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

esbuild.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ const copyWasmFiles = {
3737
fs.copyFileSync(path.join(sourceDir, "tree-sitter.wasm"), path.join(targetDir, "tree-sitter.wasm"))
3838

3939
// Copy language-specific WASM files
40-
const languageWasmDir = path.join(__dirname, "node_modules", "tree-sitter-wasms", "out")
40+
const languageWasmDir = path.join(__dirname, "node_modules", "tree-sitter-wasms-roo", "out")
4141
const languages = [
4242
"typescript",
4343
"tsx",

src/services/tree-sitter/languageParser.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ Using node bindings for tree-sitter is problematic in vscode extensions
4040
because of incompatibility with electron. Going the .wasm route has the
4141
advantage of not having to build for multiple architectures.
4242
43-
We use web-tree-sitter and tree-sitter-wasms which provides auto-updating prebuilt WASM binaries for tree-sitter's language parsers.
43+
We use web-tree-sitter and tree-sitter-wasms-roo which provides auto-updating prebuilt WASM binaries for tree-sitter's language parsers.
4444
4545
This function loads WASM modules for relevant language parsers based on input files:
4646
1. Extracts unique file extensions
@@ -53,7 +53,7 @@ This approach optimizes performance by loading only necessary parsers once for a
5353
Sources:
5454
- https://github.com/tree-sitter/node-tree-sitter/issues/169
5555
- https://github.com/tree-sitter/node-tree-sitter/issues/168
56-
- https://github.com/Gregoor/tree-sitter-wasms/blob/main/README.md
56+
- https://github.com/Gregoor/tree-sitter-wasms-roo
5757
- https://github.com/tree-sitter/tree-sitter/blob/master/lib/binding_web/README.md
5858
- https://github.com/tree-sitter/tree-sitter/blob/master/lib/binding_web/test/query-test.js
5959
*/

0 commit comments

Comments
 (0)