From cb9f8d26dc9284cee82b2dfd286f7992c2e912dd Mon Sep 17 00:00:00 2001 From: Johnny Anderson dos Santos Date: Tue, 18 Dec 2018 10:59:44 +0100 Subject: [PATCH] Make clearer that invalid versions should not be picked --- src/OmniSharp.Host/MSBuild/Discovery/Extensions.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/OmniSharp.Host/MSBuild/Discovery/Extensions.cs b/src/OmniSharp.Host/MSBuild/Discovery/Extensions.cs index fdaafca040..9325d73039 100644 --- a/src/OmniSharp.Host/MSBuild/Discovery/Extensions.cs +++ b/src/OmniSharp.Host/MSBuild/Discovery/Extensions.cs @@ -83,7 +83,7 @@ private static int GetInstanceFeatureScore(MSBuildInstance i) score++; if (i.IsInvalidVisualStudio()) - score--; + return int.MinValue; else score++;