madskristensen / FileNesting

Nest files in Solution Explorer
Other
118 stars 59 forks source link

Item nested under wrong parent when the extension rule is enabled #94

Open icnocop opened 4 years ago

icnocop commented 4 years ago

Installed product versions

Description

When trying to nest a file with the same name as existing files in the solution but in different folders, the item is nested under the wrong parent.

Steps to recreate

  1. Download and extract ClassLibrary1.zip
  2. Open ClassLibrary1.sln in Visual Studio 2017
  3. Right-click "ClassLibrary1" in "Solution Explorer" and select File Nesting > Enable automatic nesting.
  4. Set Tools > Options... > File Nesting > Nesting Rules > Enable extension rule > True
  5. Click on "Show All Files" in "Solution Explorer"
  6. Right-click "Folder1\Feature1.feature.cs" > Include In Project
  7. Right-click "Folder2\Feature1.feature.cs" > Include In Project

Current behavior

"Folder2\Feature1.feature.cs" is nested under "Folder1\Feature1.feature"

Expected behavior

I expected "Folder2\Feature1.feature.cs" to be nested under "Folder2\Feature1.feature"