dotnet/roslyn

Undo should not result in a "rename" tracking session

オープン

#26,673 opened on 2018/05/07

 (1 件のコメント) (0 件のリアクション) (0 人の担当者)C# (4,257 件のフォーク)batch import
Area-IDEBugFeature - Renamehelp wanted

Repository metrics

Stars
 (20,414 個のスター)
PR merge metrics
 (平均マージ 6d 17h) (30d で 256 merged PRs)

説明

Due to perf issues of bringing up the rename prompt, I've been making use of renaming tracking feature to rename symbols because it's much faster. However, I keep getting into states where it gets "confused" and cannot get it to auto rename to the name I want. Here's an example:

Steps to Reproduce:

  1. Using editor, rename Class -> NewClass
    public class Class
    {
    }

Should look like this: image

  1. Press ESC (or start typing) to dismiss renaming tracking
  2. Press CTRL+Z to undo rename
  3. Rename Class -> NewerClass
  4. Drop down lightbulb

Expected Behavior: To get code fix to rename Class to NewerClass

Actual Behavior: Get a code fix that asks me to rename NewClass to NewerClass

image

コントリビューターガイド