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

Feature Request: Support vscode.dev #128

Open
zpbonjour opened this issue Nov 14, 2023 · 1 comment
Open

Feature Request: Support vscode.dev #128

zpbonjour opened this issue Nov 14, 2023 · 1 comment

Comments

@zpbonjour
Copy link

Your extension is one of my favorites and it is greatly missed when I need to use https://vscode.dev. Is it possible to make the extension compatible with the browser version of VS Code?

@leodevbro
Copy link
Owner

Hello, thanks for the lovely feedback. The thing is that VS Code has many limitations, one of the limitations is that it does not give extensions access to the native AST tokens.

microsoft/vscode#177452

So, I implemented third party library (actually it is the source code of Bracket Pair Colorizer 2) for parsing/tokenizing brackets (curly/square/round). And, BPC 2 uses some NodeJS features which does not work in web browser. The biggest problem seems importing onig.wasm from vscode-oniguruma package. I could not convert this flow into web browser environment. I could not get it working. I think I will try some more things, for example maybe downloading the wasm file from online, instead of importing from local space.

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

2 participants