@@ -45,6 +45,9 @@ async function downloadTool(name) {
45 const storagePath = getStorageForTool(name);
45 const storagePath = getStorageForTool(name);
46 console.log("Downloading " + storagePath);
46 console.log("Downloading " + storagePath);
47 const urls = await getHLSAssets();
47 const urls = await getHLSAssets();
48+ if (!(name in urls)) {
49+ sendPermanentNotification("There is no pre-built HLS for GHC " + name ,"There is no pre-built version of HLS for GHC " + name + ". You can either build HLS yourself or update your project to one of the pre-built versions: https://github.com/haskell/haskell-language-server/releases")
48 const response = await fetch(urls[name]);
51 const response = await fetch(urls[name]);
49 if (!response.ok) {
52 if (!response.ok) {
50 console.error(response.statusText);
53 console.error(response.statusText);
@@ -194,4 +197,3 @@ function which(name) {
194 shell: true,
197 shell: true,
195 }).then((p) => p.trim())
198 }).then((p) => p.trim())