Skip to content

Commit

Permalink
chore: Fix lines numbers for CI testing
Browse files Browse the repository at this point in the history
  • Loading branch information
tgodzik committed Aug 10, 2023
1 parent c4270fc commit abd0b1f
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import scala.meta.internal.metals.Directories
import scala.meta.internal.metals.InitializationOptions
import scala.meta.internal.metals.MetalsEnrichments._
import scala.meta.internal.metals.PositionSyntax._
import scala.meta.internal.semver.SemVer
import scala.meta.io.AbsolutePath

import org.eclipse.lsp4j.Location
Expand Down Expand Up @@ -67,7 +68,13 @@ class FindTextInDependencyJarsSuite
assertLocations(
jdkLocations, {
val line =
if (isJavaAtLeast17 && isWindows) 1449
if (
SemVer.isCompatibleVersion(
"17.0.8",
// for 17.0.8+7 or 17.0.7-7 the suffix is irrelevant here
scala.util.Properties.javaVersion.replaceAll("(\\+|\\-).*", ""),
)
) 1449
else if (isJavaAtLeast17) 1445
else if (isJavaAtLeast9) 626
else 578
Expand Down

0 comments on commit abd0b1f

Please sign in to comment.