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 c1c5d17
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/fetchMetals.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,10 @@ export function fetchMetals({
(p) => !p.startsWith("-agentlib")
);

const binaryVersion = serverVersion > "0.11.2" ? "2.13" : "2.12";
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 c1c5d17

Please sign in to comment.