Skip to content

Commit 3d615e8

Browse files
Fix capitalization
1 parent 3975bfa commit 3d615e8

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

src/core/parser.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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

src/extension.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ let parserService: Parser | null = null
9999
export 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(

src/test/testUtils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ declare const __DIST_ROOT__: string
66

77
export 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
1010
export const wasmBinaries = {
1111
core: new Uint8Array(readFileSync(join(wasmDir, "web-tree-sitter.wasm"))),
1212
python: new Uint8Array(

0 commit comments

Comments
 (0)