Skip to content

Commit 5a5cbf9

Browse files
Remove parameter
1 parent 830de00 commit 5a5cbf9

File tree

4 files changed

+4
-6
lines changed

4 files changed

+4
-6
lines changed

src/EditorFeatures/Test2/Rename/RenameEngineResult.vb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ Namespace Microsoft.CodeAnalysis.Editor.UnitTests.Rename
136136
Dim locations = Renamer.FindRenameLocationsAsync(
137137
solution, symbol, renameOptions, CancellationToken.None).GetAwaiter().GetResult()
138138

139-
Return locations.ResolveConflictsAsync(symbol, renameTo, nonConflictSymbolKeys:=Nothing, CancellationToken.None).GetAwaiter().GetResult()
139+
Return locations.ResolveConflictsAsync(symbol, renameTo, CancellationToken.None).GetAwaiter().GetResult()
140140
Else
141141
' This tests that rename properly works when the entire call is remoted to OOP and the final result is
142142
' marshaled back.

src/Features/Core/Portable/EncapsulateField/AbstractEncapsulateFieldService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ private static async Task<Solution> RenameAsync(
287287
// edit the files in the current project
288288
var resolution = await initialLocations
289289
.Filter((documentId, span) => !linkedProjectIds.Contains(documentId.ProjectId) && filter(documentId, span))
290-
.ResolveConflictsAsync(field, finalName, nonConflictSymbolKeys: default, cancellationToken).ConfigureAwait(false);
290+
.ResolveConflictsAsync(field, finalName, cancellationToken).ConfigureAwait(false);
291291

292292
Contract.ThrowIfFalse(resolution.IsSuccessful);
293293

src/LanguageServer/Protocol/Handler/Rename/RenameHandler.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,7 @@ internal sealed class RenameHandler() : ILspServiceDocumentRequestHandler<LSP.Re
5454
cancellationToken).ConfigureAwait(false);
5555

5656
var renameReplacementInfo = await renameLocationSet.ResolveConflictsAsync(
57-
symbolicRenameInfo.Symbol, symbolicRenameInfo.GetFinalSymbolName(newName),
58-
nonConflictSymbolKeys: default,
59-
cancellationToken).ConfigureAwait(false);
57+
symbolicRenameInfo.Symbol, symbolicRenameInfo.GetFinalSymbolName(newName), cancellationToken).ConfigureAwait(false);
6058

6159
if (!renameReplacementInfo.IsSuccessful ||
6260
!renameReplacementInfo.ReplacementTextValid)

src/Workspaces/Core/Portable/Rename/LightweightRenameLocations.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ public static async Task<LightweightRenameLocations> FindRenameLocationsAsync(
114114
renameLocations.ReferencedSymbols.SelectAsArray(sym => SerializableSymbolAndProjectId.Dehydrate(solution, sym, cancellationToken)));
115115
}
116116

117-
public Task<ConflictResolution> ResolveConflictsAsync(ISymbol symbol, string replacementText, ImmutableArray<SymbolKey> nonConflictSymbolKeys, CancellationToken cancellationToken)
117+
public Task<ConflictResolution> ResolveConflictsAsync(ISymbol symbol, string replacementText, CancellationToken cancellationToken)
118118
=> ConflictResolver.ResolveLightweightConflictsAsync(symbol, this, replacementText, cancellationToken);
119119

120120
public LightweightRenameLocations Filter(Func<DocumentId, TextSpan, bool> filter)

0 commit comments

Comments
 (0)