public async Task <IInlineRenameReplacementInfo> GetReplacementsAsync(string replacementText, SymbolRenameOptions options, CancellationToken cancellationToken) { var conflicts = await _renameLocationSet.ResolveConflictsAsync( _renameInfo.GetFinalSymbolName(replacementText), nonConflictSymbols : null, cancellationToken).ConfigureAwait(false); return(new InlineRenameReplacementInfo(conflicts)); }
public async Task <IInlineRenameReplacementInfo> GetReplacementsAsync(string replacementText, OptionSet optionSet, CancellationToken cancellationToken) { var conflicts = await ConflictResolver.ResolveConflictsAsync( _renameLocationSet, _renameLocationSet.Symbol.Name, _renameInfo.GetFinalSymbolName(replacementText), optionSet, hasConflict : null, cancellationToken : cancellationToken).ConfigureAwait(false); return(new InlineRenameReplacementInfo(conflicts)); }
public async Task <IInlineRenameReplacementInfo> GetReplacementsAsync(string replacementText, OptionSet optionSet, CancellationToken cancellationToken) { var conflicts = await _renameLocationSet.ResolveConflictsAsync( _renameInfo.GetFinalSymbolName(replacementText), nonConflictSymbols : null, cancellationToken : cancellationToken).ConfigureAwait(false); Contract.ThrowIfTrue(conflicts.ErrorMessage != null); return(new InlineRenameReplacementInfo(conflicts)); }