Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<CentralPackageTransitivePinningEnabled>true</CentralPackageTransitivePinningEnabled>
</PropertyGroup>
<ItemGroup>
<GlobalPackageReference Include="CSharpier.MSBuild" Version="1.3.0" />
<GlobalPackageReference Include="CSharpier.MSBuild" Version="1.4.0" />
<GlobalPackageReference Include="Microsoft.CodeAnalysis.BannedApiAnalyzers" Version="5.6.0" />
<GlobalPackageReference Include="Microsoft.CodeAnalysis.NetAnalyzers" Version="10.0.403" />
<GlobalPackageReference Include="Microsoft.SourceLink.GitHub" Version="10.0.403" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -147,9 +147,8 @@ semanticModel is null
{
editor.InsertBefore(containingStatement, throwIfNullStatement);
editor.ReplaceNode(coalesce, argument.WithoutTrivia());
editor.ReplaceNode(
containingStatement,
(currentNode, _) => currentNode.WithLeadingTrivia(SyntaxFactory.ElasticMarker)
editor.ReplaceNode(containingStatement, (currentNode, _) =>
currentNode.WithLeadingTrivia(SyntaxFactory.ElasticMarker)
);
}
else
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -209,8 +209,7 @@ private static async Task<string> ApplyFixAllCoreAsync(
var equivalenceKey = await GetEquivalenceKeyAsync(document, codeFix, diagnostics[0], cancellationToken)
.ConfigureAwait(false);

var fixAllProvider =
codeFix.GetFixAllProvider()
var fixAllProvider = codeFix.GetFixAllProvider()
?? throw new InvalidOperationException("The code fix provider does not support Fix All.");

var fixAllContext = new FixAllContext(
Expand All @@ -223,8 +222,7 @@ private static async Task<string> ApplyFixAllCoreAsync(
CancellationToken.None
);

var fixAllAction =
await fixAllProvider.GetFixAsync(fixAllContext).ConfigureAwait(false)
var fixAllAction = await fixAllProvider.GetFixAsync(fixAllContext).ConfigureAwait(false)
?? throw new InvalidOperationException("No Fix All action was registered.");

var operations = await fixAllAction.GetOperationsAsync(CancellationToken.None).ConfigureAwait(false);
Expand Down
Loading