File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ export class Parser {
88 private parser : TreeSitterParser | null = null
99
1010 /**
11- * Initialize the parser with WASM binaries.
11+ * Initialize the parser with Wasm binaries.
1212 * @param wasmBinaries.core - The web-tree-sitter.wasm binary
1313 * @param wasmBinaries.python - The tree-sitter-python.wasm binary
1414 */
@@ -17,10 +17,10 @@ export class Parser {
1717 return
1818 }
1919
20- // Pre-compile the WASM module from the binary
20+ // Pre-compile the Wasm module from the binary
2121 const wasmModule = await WebAssembly . compile ( wasmBinaries . core )
2222
23- // Use instantiateWasm to provide custom WASM instantiation.
23+ // Use instantiateWasm to provide custom Wasm instantiation.
2424 // This bypasses tree-sitter's default URL-based loading which relies
2525 // on import.meta.url - unavailable in bundled or non-ESM environments.
2626 await TreeSitterParser . init ( {
@@ -37,7 +37,7 @@ export class Parser {
3737
3838 const parser = new TreeSitterParser ( )
3939
40- // Load Python language from WASM binary
40+ // Load Python language from Wasm binary
4141 const pythonLanguage = await Language . load ( wasmBinaries . python )
4242 parser . setLanguage ( pythonLanguage )
4343
Original file line number Diff line number Diff line change @@ -99,7 +99,7 @@ let parserService: Parser | null = null
9999export async function activate ( context : vscode . ExtensionContext ) {
100100 parserService = new Parser ( )
101101
102- // Read WASM files via VS Code's virtual filesystem API
102+ // Read Wasm files via VS Code's virtual filesystem API
103103 const [ coreWasm , pythonWasm ] = await Promise . all ( [
104104 vscode . workspace . fs . readFile (
105105 vscode . Uri . joinPath (
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ declare const __DIST_ROOT__: string
66
77export const wasmDir = join ( __DIST_ROOT__ , "wasm" )
88
9- // Read WASM files as Uint8Array for the new parser API
9+ // Read Wasm files as Uint8Array for the new parser API
1010export const wasmBinaries = {
1111 core : new Uint8Array ( readFileSync ( join ( wasmDir , "web-tree-sitter.wasm" ) ) ) ,
1212 python : new Uint8Array (
You can’t perform that action at this time.
0 commit comments