Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it possible to use from vscode extension? #17

Closed
usernamehw opened this issue Aug 15, 2019 · 5 comments
Closed

Is it possible to use from vscode extension? #17

usernamehw opened this issue Aug 15, 2019 · 5 comments

Comments

@usernamehw
Copy link

usernamehw commented Aug 15, 2019

ENOENT: no such file or directory, open 'node_modules\onigasm\lib\onigasm.wasm'

I have no idea what .wasm is and how to handle it...

@octref
Copy link
Collaborator

octref commented Aug 15, 2019

Seems someone else already did it: microsoft/vscode#65559 and rubyide/vscode-ruby#506. So this is definitely possible.

@usernamehw
Copy link
Author

So, I still have no idea how. Abandoning it then.

@octref
Copy link
Collaborator

octref commented Aug 15, 2019

@usernamehw You should subscribe to microsoft/vscode-docs#2212. I was talking to @rebornix and we'll put together a guide for using WASM in extensions.

@ZelCloud
Copy link

Issue microsoft/vscode-docs#2212 seems to have been closed without an example being provided.

Could we get a small sample showing us how to load the shiki onig.wasm file in an vscode extension and then using it within a webview?

@muenzpraeger
Copy link
Collaborator

@ZelCloud Check the link in microsoft/vscode#65559 (comment) for instructions.

antfu added a commit that referenced this issue Jan 26, 2024
Co-authored-by: Anthony Fu <anthonyfu117@hotmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants