3 ms·
I don't know anything about how VS Code is architected, but surely if language support extensions are such a drag on performance, the plugin API has some way to
by apetresc 9y ago
I don't know anything about how VS Code is architected, but surely if language support extensions are such a drag on performance, the plugin API has some way to load them dynamically only when a project of the relevant type is opened, right? Or does it really load every conceivable language plugin you have installed into memory whenever you open a scratch file in VS Code?
- ncallaway 9y agoIt does have exactly that (dynamic loading of extensions).
- coldacid 9y agoApparently that is indeed what happens, but VS Code still needs to load each active plugin's manifest and prepare hooks for when it'll be loaded. Still nowhere as bad as actually loading them all. There are still plenty of other extensions that provide language-specific features that aren't language support, and those will end up getting loaded every time if they aren't deactivated. I find it's still useful to keep those installed and disabled by default, and only enable them for appropriate workspaces. It does help with maintaining Code's great performance.