on 58955ee help sign in
Haskell Language Server.novaextension/Scripts/download.js+1−3
since splitsnapshots
unifiedsplit
@@ -45,9 +45,6 @@ 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")
50− }
51 const response = await fetch(urls[name]);
48 const response = await fetch(urls[name]);
52 if (!response.ok) {
49 if (!response.ok) {
53 console.error(response.statusText);
50 console.error(response.statusText);
@@ -197,3 +194,4 @@ function which(name) {
197 shell: true,
194 shell: true,
198 }).then((p) => p.trim())
195 }).then((p) => p.trim())
199}
196}
197+
Haskell Language Server.novaextension/Scripts/utils.js−2
@@ -120,8 +120,6 @@ async function createEnv() {
120 const envStr = await promise
120 const envStr = await promise
121 .catch((err) => sendPermanentNotification("Generating environment failed", err))
121 .catch((err) => sendPermanentNotification("Generating environment failed", err))
122 envCache = parseEnvs(envStr)
122 envCache = parseEnvs(envStr)
123− } else {
124− envCache = {}
125 }
123 }
126}
124}
127
125