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

Support extensions.experimental.affinity to speed up extension #126

Open
fujidaiti opened this issue Oct 23, 2023 · 1 comment
Open

Support extensions.experimental.affinity to speed up extension #126

fujidaiti opened this issue Oct 23, 2023 · 1 comment

Comments

@fujidaiti
Copy link

VSCode allows extensions to run in their own thread. Some famous extensions already use this feature to improve their performance (e.g. VSCode Neovim). However, adding Blockman to extensions.experimental.affinity in settings.json seems to make it stop working:

"extensions.experimental.affinity": {
    "leodevbro.blockman": 1
}

Does anyone have a good idea?

@fujidaiti fujidaiti changed the title Won't work with extensions.experimental.affinity configuration Support extensions.experimental.affinity to speed up extension Oct 23, 2023
@leodevbro
Copy link
Owner

Hello, with the affinity 1, Blockman seems working fine for HTML tag blocks, but does not render blocks for brackets (curly/round/square). I guess the reason is WASM, I mean Blockman uses source code of Bracket Pair Colorizer 2 and BPC2 itself uses .wasm (web assembly) file for fast analyzation of brackets. Maybe somehow the loading mechanism of WASM does not work with the affinity. I'll try to investigate it when I have time.

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