Skip to content

Commit

Permalink
Bump Microsoft.VisualStudio.Threading.Analyzers to 17.10.48
Browse files Browse the repository at this point in the history
  • Loading branch information
AArnott committed May 6, 2024
1 parent 92aa2b1 commit bf192e1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<PackageVersion Include="Microsoft.CSharp" Version="4.7.0" />
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="17.9.0" />
<PackageVersion Include="Microsoft.VisualStudio.Internal.MicroBuild.NonShipping" Version="$(MicroBuildVersion)" />
<PackageVersion Include="Microsoft.VisualStudio.Threading.Analyzers" Version="17.8.14" />
<PackageVersion Include="Microsoft.VisualStudio.Threading.Analyzers" Version="17.10.48" />
<PackageVersion Include="Microsoft.VisualStudio.Validation" Version="17.8.8" />
<PackageVersion Include="Nerdbank.MSBuildExtension" Version="0.1.17-beta" />
<PackageVersion Include="Nerdbank.NetStandardBridge" Version="1.1.9-alpha" />
Expand Down
4 changes: 4 additions & 0 deletions src/Microsoft.VisualStudio.Composition/PartDiscovery.cs
Original file line number Diff line number Diff line change
Expand Up @@ -528,7 +528,9 @@ internal static bool IsImportManyCollectionTypeCreateable(Type collectionType, T
{
try
{
#pragma warning disable VSTHRD003 // Avoid awaiting foreign Tasks -- this isn't really a foreign task
await aggregatingBlock.Completion.ConfigureAwait(false);
#pragma warning restore VSTHRD003 // Avoid awaiting foreign Tasks
tcs.SetResult(new DiscoveredParts(parts.ToImmutable(), errors.ToImmutable()));
}
catch (Exception ex)
Expand Down Expand Up @@ -592,7 +594,9 @@ internal static bool IsImportManyCollectionTypeCreateable(Type collectionType, T
{
try
{
#pragma warning disable VSTHRD003 // Avoid awaiting foreign Tasks -- this isn't really a foreign task
var parts = await tuple.Item2.ConfigureAwait(false);
#pragma warning restore VSTHRD003 // Avoid awaiting foreign Tasks
tcs.SetResult(parts.Merge(new DiscoveredParts(Enumerable.Empty<ComposablePartDefinition>(), exceptions)));
}
catch (Exception ex)
Expand Down

0 comments on commit bf192e1

Please sign in to comment.