Skip to content

Invoke ReSharper for the rename if available. #69

@JohanLarsson

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions