From e749d53599be7aa490198f7d28829cfd6a1ca66a Mon Sep 17 00:00:00 2001 From: Rikito Taniguchi Date: Thu, 10 Mar 2022 19:16:43 +0900 Subject: [PATCH] feat: support new 2.13 artifacts --- src/fetchMetals.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/fetchMetals.ts b/src/fetchMetals.ts index 193ec870..54c53e30 100644 --- a/src/fetchMetals.ts +++ b/src/fetchMetals.ts @@ -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,