Skip to content

Invoke ReSharper for the rename if available. #69

Description

@JohanLarsson
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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions