RazorInProcLanguageClient currently imports VisualStudioWorkspace:
https://sourceroslyn.io/#Microsoft.VisualStudio.LanguageServices/Implementation/LanguageClient/RazorInProcLanguageClient.cs,99e841363bce23be
We can't use this on Mac. We should investigate moving RazorInProcLanguageClient into the EditorFeatures layer or removing the dependency on VisualStudioWorkspace.
Additionally the work item https://dev.azure.com/devdiv/DevDiv/_workitems/edit/1351469 is tracking a MEF export for IBrokeredServiceContainer, we should switch to obtaining it from MEF so we can use it from Mac.
In general, we can't use anything from the Microsoft.VisualStudio.LanguageServices layer and we can't use any VS APIs that start with "IVs". But we can and should use MEF.
RazorInProcLanguageClient currently imports VisualStudioWorkspace:
https://sourceroslyn.io/#Microsoft.VisualStudio.LanguageServices/Implementation/LanguageClient/RazorInProcLanguageClient.cs,99e841363bce23be
We can't use this on Mac. We should investigate moving RazorInProcLanguageClient into the EditorFeatures layer or removing the dependency on VisualStudioWorkspace.
Additionally the work item https://dev.azure.com/devdiv/DevDiv/_workitems/edit/1351469 is tracking a MEF export for IBrokeredServiceContainer, we should switch to obtaining it from MEF so we can use it from Mac.
In general, we can't use anything from the Microsoft.VisualStudio.LanguageServices layer and we can't use any VS APIs that start with "IVs". But we can and should use MEF.