diff --git a/src/Paket.VisualStudio/Restore/AutoRestorer.cs b/src/Paket.VisualStudio/Restore/AutoRestorer.cs index a043ac340..72122896f 100644 --- a/src/Paket.VisualStudio/Restore/AutoRestorer.cs +++ b/src/Paket.VisualStudio/Restore/AutoRestorer.cs @@ -26,4 +26,4 @@ public void Restore(Dependencies dependencies, IEnumerable pro restorer.Restore(dependencies, projects); } } -} \ No newline at end of file +} diff --git a/src/Paket.VisualStudio/Restore/PaketRestorer.cs b/src/Paket.VisualStudio/Restore/PaketRestorer.cs index fc7705427..7edb97a01 100644 --- a/src/Paket.VisualStudio/Restore/PaketRestorer.cs +++ b/src/Paket.VisualStudio/Restore/PaketRestorer.cs @@ -9,16 +9,8 @@ public class PaketRestorer : IPackageRestorer { public void Restore(Dependencies dependencies, IEnumerable project) { - if (project == null) - { - dependencies.Restore(); - } - else - { - dependencies.Restore( - FSharpOption.None, - ListModule.OfSeq(project.Select(p => p.ReferenceFile))); - } + // Note: Performance optimization because this command is optimized in paket itself + dependencies.Restore(); } } -} \ No newline at end of file +}