roslyn-sdk
roslyn-sdk copied to clipboard
Component Debugger: Deadlock of project filter
The code used to filter the target projects to only those that use the generator is currently deadlocking on certain projects, so disabled for now.
We should figure out a non locking way of getting the project information for projects that use the generator.
The below code is deadlocking the UI on certain projects:
// check if the args contain the project as an analyzer ref
foreach (var arg in await targetProject.GetCompilationArgumentsAsync().ConfigureAwait(false))
{
if (arg.StartsWith("/analyzer", StringComparison.OrdinalIgnoreCase)
&& arg.EndsWith(target, StringComparison.OrdinalIgnoreCase))
{
targetProjects.Add(targetProject);
}
}