microsoft / vs-servicehub

The service broker libraries used by Visual Studio to exchange intra- and inter-process services
MIT License
20 stars 8 forks source link

Avoid `ImmutableArray<T>` in MEF types #235

Closed AArnott closed 1 month ago

AArnott commented 1 month ago

The ImmutableArray<string> type isn't supported by the VS-MEF cache serialization code. We need to use the more ordinary string[] type.

I added more exhaustive MEF testing (including serialization) which turned out to be critical because it found a bug in VS-MEF that would block this scenario.

AArnott commented 1 month ago

This PR is incomplete (as tests won't pass) until the MEF fix is merged and we update the MEF version that we depend on here.