From 593f09d337437ffc7fed6cd28495adc27fd3f56c Mon Sep 17 00:00:00 2001 From: Matthias Dittrich Date: Sat, 26 Aug 2017 23:59:34 +0200 Subject: [PATCH] only use 'restore all' to benefit from https://github.com/fsprojects/Paket/pull/2675 --- src/Paket.VisualStudio/Restore/AutoRestorer.cs | 2 +- src/Paket.VisualStudio/Restore/PaketRestorer.cs | 14 +++----------- 2 files changed, 4 insertions(+), 12 deletions(-) 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 +}