Skip to content
This repository has been archived by the owner on Dec 23, 2024. It is now read-only.

Commit

Permalink
Don't quote generic type parameters on rename (dotnet#6491)
Browse files Browse the repository at this point in the history
  • Loading branch information
cartermp authored Apr 16, 2019
1 parent 1c21b64 commit a62e632
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 a62e632

Please sign in to comment.