2021-02-17 16:52:42 +01:00
|
|
|
diff --git a/out/extension.js b/out/extension.js
|
2021-05-18 23:38:59 +02:00
|
|
|
index e932d27..099126b 100644
|
2021-02-17 16:52:42 +01:00
|
|
|
--- a/out/extension.js
|
|
|
|
+++ b/out/extension.js
|
2021-05-18 23:38:59 +02:00
|
|
|
@@ -143,25 +143,6 @@ function updateLanguageServer() {
|
2021-03-26 22:23:25 +01:00
|
|
|
return __awaiter(this, void 0, void 0, function* () {
|
2021-05-18 23:38:59 +02:00
|
|
|
const delay = 1000 * 60 * 60 * 24;
|
|
|
|
languageServerUpdater.timeout(updateLanguageServer, delay); // check for new updates every 24hrs
|
2021-03-26 22:23:25 +01:00
|
|
|
- // skip install if a language server binary path is set
|
|
|
|
- if (!vscodeUtils_1.config('terraform').get('languageServer.pathToBinary')) {
|
|
|
|
- const installer = new languageServerInstaller_1.LanguageServerInstaller(installPath, reporter);
|
|
|
|
- const install = yield installer.needsInstall();
|
|
|
|
- if (install) {
|
|
|
|
- yield stopClients();
|
2021-02-17 16:52:42 +01:00
|
|
|
- try {
|
2021-03-26 22:23:25 +01:00
|
|
|
- yield installer.install();
|
2021-02-17 16:52:42 +01:00
|
|
|
- }
|
|
|
|
- catch (err) {
|
2021-04-29 23:20:41 +02:00
|
|
|
- console.log(err); // for test failure reporting
|
2021-02-23 15:29:49 +01:00
|
|
|
- reporter.sendTelemetryException(err);
|
2021-02-17 16:52:42 +01:00
|
|
|
- throw err;
|
|
|
|
- }
|
|
|
|
- finally {
|
2021-03-26 22:23:25 +01:00
|
|
|
- yield installer.cleanupZips();
|
2021-02-17 16:52:42 +01:00
|
|
|
- }
|
2021-03-26 22:23:25 +01:00
|
|
|
- }
|
|
|
|
- }
|
|
|
|
return startClients(); // on repeat runs with no install, this will be a no-op
|
|
|
|
});
|
|
|
|
}
|
2021-05-18 23:38:59 +02:00
|
|
|
@@ -259,7 +240,7 @@ function pathToBinary() {
|
2021-03-26 22:23:25 +01:00
|
|
|
reporter.sendTelemetryEvent('usePathToBinary');
|
2021-02-17 16:52:42 +01:00
|
|
|
}
|
2021-03-10 22:16:21 +01:00
|
|
|
else {
|
2021-03-26 22:23:25 +01:00
|
|
|
- command = path.join(installPath, 'terraform-ls');
|
|
|
|
+ command = 'TERRAFORM-LS-PATH';
|
|
|
|
}
|
|
|
|
_pathToBinaryPromise = Promise.resolve(command);
|
|
|
|
}
|