|
|
|
|
|
by 414owen
1719 days ago
|
|
So, what's the plan? Reimplement every popular extension that doesn't have good performance? > the asynchronous communication between the renderer and the extension-host severely limits how fast bracket pair colorization can be when implemented as an extension. This limit cannot be overcome Nope, I'm not convinced. If it can be done internally, then you should expose more internals until it's possible to do it with the public API. I bet this could be made really performant if vscode had incremental parsing, like tree-sitter+Atom. |
|
> This is another challenge of the Bracket Pair Colorization extension that affects performance negatively: it does not have access to these tokens and has to recompute them on its own. We thought long about how we could efficiently and reliably expose token information to extensions, but came to the conclusion that we cannot do this without a lot of implementation details leaking into the extension API. Because the extension still has to send over a list of color decorations for each bracket in the document, such an API alone would not even solve the performance problem.