Skip to content

Commit

Permalink
Merge pull request #1437 from tgodzik/add-21
Browse files Browse the repository at this point in the history
chore: Allow JDKs up until 21 to be found automatically
  • Loading branch information
tgodzik authored Nov 16, 2023
2 parents f5de302 + 018afb7 commit b2de62b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/metals-languageclient/src/getJavaHome.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ function fromEnv(): TaskEither<unknown, string> {

function locate(): TaskEither<Error, string> {
return pipe(
locateJavaHome({ version: ">=1.8 <=17" }),
locateJavaHome({ version: ">=1.8 <=21" }),
chain((javaHomes) => {
if (!javaHomes || javaHomes.length === 0) {
return TE.left(new Error("No suitable Java version found"));
Expand Down

0 comments on commit b2de62b

Please sign in to comment.