fsharp
fsharp copied to clipboard
Renaming in VS2022 sometimes garbles rename targets
Renaming in Visual Studio 2022 sometimes garbles the rename targets across the codebase.
Repro:
I am not yet able to consistently reproduce this error, but I suspect that it tends to happen in medium to large code bases when you quickly type and hit enter before VS has finished scanning the codebase for the keyword.
This bug report can serve as a placeholder until I can come up with consistent steps to recreate the issue.
Known workarounds
There are two workarounds that I have found that seem to mostly eliminate this issue:
- Always Save All before starting the rename.
- Pause for a moment after entering the new name in the rename dialog to avoid prematurely starting the rename process before VS has finished scanning and selecting the rename targets.
Related information
Provide any related information (optional):
- Operating system: Windows 10
- .NET Runtime kind (.NET Core, .NET Framework, Mono): .NET Framework, .NET Core, .NET 5/6
- Editing Tools (e.g. Visual Studio Version, Visual Studio): Visual Studio 2022 Professional