Gu.Localization icon indicating copy to clipboard operation
Gu.Localization copied to clipboard

Invoke ReSharper for the rename if available.

Open JohanLarsson opened this issue 6 years ago • 0 comments

protected override Action<ITextControl> ExecutePsiTransaction(ISolution solution, IProgressIndicator progress)
{
  return (Action<ITextControl>) (tc =>
  {
    string str = RenameRefactoringService.Rename(solution, new RenameDataProvider(this.myElement, this.mySuggestedName), tc);
    if (str.IsNullOrWhitespace())
      return;
    BulbActionBase.ShowTooltip(tc, str);
  });
}

Roslyn rename is pretty much break code as a service.

JohanLarsson avatar May 17 '18 19:05 JohanLarsson