Skip to content

Commit

Permalink
Merge pull request dotnet#6560 from Microsoft/merges/master-to-dev16.1
Browse files Browse the repository at this point in the history
Merge master to dev16.1
  • Loading branch information
brettfo authored Apr 16, 2019
2 parents fd47d17 + 04ad2af commit ad7f51e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion InlineRename/InlineRenameService.fs
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,11 @@ type internal InlineRenameLocationSet(locations: InlineRenameLocation [], origin

async {
let! newSolution = applyChanges originalSolution (locations |> Array.toList |> List.groupBy (fun x -> x.Document))
let replacementText =
match symbolKind with
| LexerSymbolKind.GenericTypeParameter
| LexerSymbolKind.StaticallyResolvedTypeParameter -> replacementText
| _ -> Lexhelp.Keywords.NormalizeIdentifierBackticks replacementText
return
{ new IInlineRenameReplacementInfo with
member __.NewSolution = newSolution
Expand Down Expand Up @@ -94,7 +99,7 @@ type internal InlineRenameInfo
member __.DisplayName = symbolUse.Symbol.DisplayName
member __.FullDisplayName = try symbolUse.Symbol.FullName with _ -> symbolUse.Symbol.DisplayName
member __.Glyph = Glyph.MethodPublic
member __.GetFinalSymbolName replacementText = Lexhelp.Keywords.NormalizeIdentifierBackticks replacementText
member __.GetFinalSymbolName replacementText = replacementText

member __.GetReferenceEditSpan(location, cancellationToken) =
let text = getDocumentText location.Document cancellationToken
Expand Down

0 comments on commit ad7f51e

Please sign in to comment.