madskristensen / IgnoreFiles

A Visual Studio extension
Other
29 stars 13 forks source link

Path exclusion negation doesn't seem to be handled properly for .gitignore files #26

Closed michaelmelancon closed 8 years ago

michaelmelancon commented 8 years ago

Installed product versions

Negation in .gitignore file for a very large repository will cause visual studio to hang. In the matched files listing on hover, it shows nearly every file in the project, not just the negated path.

Steps to recreate

  1. Create a large solution (mine has 10+ projects and over 11k files)
  2. Add the following lines to .gitignore
# NuGet Packages Directory (Ensure Nuget Package Restore is Enabled)
packages/*

# Enable "build/" folder in the NuGet Packages folder since NuGet packages use it for MSBuild targets
!packages/*/build/
  1. Hover over !packages/*/build for a bit
  2. Try to do anything else

    Current behavior

VS hangs with 32% processor usage, normal memory usage

Expected behavior

VS should be responsive