Skip to content

Commit

Permalink
fix: onig.wasm path (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
hyoban authored Jul 10, 2024
1 parent 405ce40 commit fdc6e43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/model/oniguruma.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { OnigScanner, OnigString, loadWASM } from 'vscode-oniguruma'
import { config } from '~/config'

export async function getOnigurumaLib() {
const wasmUri = Uri.joinPath(config.extensionUri, './out/oniguruma.wasm')
const wasmUri = Uri.joinPath(config.extensionUri, './out/onig.wasm')

const onigWasm = await workspace.fs.readFile(wasmUri)
const buffer = onigWasm.buffer.slice(onigWasm.byteOffset, onigWasm.byteOffset + onigWasm.byteLength)
Expand Down

0 comments on commit fdc6e43

Please sign in to comment.