runner-images icon indicating copy to clipboard operation
runner-images copied to clipboard

Ensure VS MEF is also initialized in the VS experimental

Open kzu opened this issue 2 years ago • 1 comments

MEF initialization is very costly and can take up to 15' on first run of VS.

MEF is only initialized when some action in the IDE requires resolving a MEF export in VS. The heaviest consumer of MEF in VS is the core editor itself, and the existing initialization code was not causing the editor to open at all, leaving MEF uninitialized.

By opening even a (mostly) empty C# file, we cause most key components in MEF to be properly initialized once: editor and project system.

Description

Performance issue bug fixing for VS experimental (for VS extension authoring integration testing).

kzu avatar Sep 23 '22 13:09 kzu

/cc @bmuskalla @tilmann1

kzu avatar Sep 23 '22 13:09 kzu

Hello! Current VS configuration scripts are too fragile, we would not like to extend initialization commands as it may break lots of customers and affect them badly.

mikhailkoliada avatar Dec 12 '22 10:12 mikhailkoliada