vscode-blockman icon indicating copy to clipboard operation
vscode-blockman copied to clipboard

Support `extensions.experimental.affinity` to speed up extension

Open fujidaiti opened this issue 1 year ago • 1 comments

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 avatar Oct 23 '23 04:10 fujidaiti

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.

leodevbro avatar Jan 31 '24 21:01 leodevbro