-
Notifications
You must be signed in to change notification settings - Fork 420
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reuse Roslyn's analyzer assembly loader #2236
Reuse Roslyn's analyzer assembly loader #2236
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks a lot for keeping this up to date
6b9254f
to
07c16e2
Compare
src/OmniSharp.Roslyn.CSharp/Services/Completion/CompletionOptionsProvider.cs
Outdated
Show resolved
Hide resolved
src/OmniSharp.Roslyn.CSharp/Services/Completion/CompletionService.cs
Outdated
Show resolved
Hide resolved
07c16e2
to
349f08c
Compare
Roslyn has made some improvements to better handle the case where analyzers or generators have a mix of assembly versions, such as in microsoft/CsWin32#218. The Roslyn changes were made in dotnet/roslyn#56432, and this consumes it.
349f08c
to
85f35cf
Compare
{ | ||
public static class ShadowCopyAnalyzerAssemblyLoader | ||
{ | ||
public static readonly IAnalyzerAssemblyLoader Instance = OmnisharpAnalyzerAssemblyLoaderFactory.CreateShadowCopyAnalyzerAssemblyLoader(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is here because the Omnisharp.Host project doesn't have internals access to Microsoft.CodeAnalysis.ExternalAccess.Omnisharp; I don't know if that was an accidental oversight or intentional layering, but following it for now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm sure it just wasn't necessary for the initial round of reflection removal. This seems fine for now.
This is now ready for review now that we sorted everything else out. |
Roslyn has made some improvements to better handle the case where analyzers or generators have a mix of assembly versions, such as in microsoft/CsWin32#218. The Roslyn changes were made in dotnet/roslyn#56432, and this consumes it.