Move static members to another type... refactoring is unhappy with partial classes
- Dominant language
- C#
- Stars
- 20.7k
- Forks
- 4.3k
- PR merge metrics
- PR metrics pending
Description
**Version Used**:
VS 2022 17.14.11
**Steps to Reproduce**:
1. in a partial class where multiple documents have static members, open the `Move static members to another type...` refactoring from the Ctrl+. context menu for one of those static members
2. select all members in the upcoming dialog - this picks members from multiple files, hit OK
3. observe the error and the golden bar complaining about the node to track not being a descendant of the root
https://cdn.discordapp.com/attachments/598678594750775301/1402630487364735180/image.png?ex=68949cef&is=68934b6f&hm=8b1576c5bb62dec5ed1af14f67109c69ab29793c126b73f334020c8b279c66e6&
**Expected Behavior**:
no error, each member should be moved into one type
**Actual Behavior**:
the error message comes up and nothing is modified.
**Notes**
Moving the individual static members into one new type step by step worked, so i suppose it has something to do with the `partial`ness of the source.
Contributor guide
Assessment
This issue has not been assessed yet.