Skip to content
This repository has been archived by the owner on Mar 21, 2023. It is now read-only.

Commit

Permalink
feat: support new 2.13 artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
tanishiking committed Mar 10, 2022
1 parent b2b6f2e commit 33d1077
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/fetchMetals.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,12 @@ export function fetchMetals({
(p) => !p.startsWith("-agentlib")
);

const binaryVersion = serverVersion > "0.11.2" ? "2.13" : "2.12"
console.log(serverVersion)
console.log(binaryVersion)
const serverDependency = serverVersion.includes(":")
? serverVersion
: `org.scalameta:metals_2.12:${serverVersion}`;
: `org.scalameta:metals_${binaryVersion}:${serverVersion}`;

return spawn(
javaPath,
Expand Down

0 comments on commit 33d1077

Please sign in to comment.