codecadwallader / codemaid

CodeMaid is an open source Visual Studio extension to cleanup and simplify our C#, C++, F#, VB, PHP, PowerShell, JSON, XAML, XML, ASP, HTML, CSS, LESS, SCSS, JavaScript and TypeScript coding.
http://www.codemaid.net
GNU Lesser General Public License v3.0
1.88k stars 352 forks source link

CodeMaid Reorganizing Issue VS 2022 / 12.0.344 #1052

Open Paul77M opened 2 months ago

Paul77M commented 2 months ago

Environment

Description

CodeMaid is not sorting Class Members correctly for undetermined reasons.

Steps to recreate

  1. Open File that may or may not be organized (this affects some files but not others)
  2. Sort Document using ^M ^Z

Current behavior

Under unknown circumstances, members will not sort correctly and will actually move members with the same access and name away from each other.

Expected behavior

Members should be sorted as configured. Attached are a video (converted to an animated GIF) of the actions (with keystrokes displayed), an image before sorting showing the members grouped correctly (in red bounding box), an image after sorting showing the members not grouped correctly (in two red bounding boxes) and two images showing the Reorganizing --> General and Reorganizing --> Types settings.

CodeMaid Reorganizing Issue 1 CodeMaid Reorganizing Issue 2 CodeMaid Reorganizing Issue 3 CodeMaid Reorganizing Issue 4 CodeMaid Reorganizing Issue 5

Paul77M commented 2 months ago

Attached is a higher resolution version of the Animated Gif so that is is easier to review.

CodeMaid Reorganizing Issue 1