summary refs log tree commit diff
path: root/pkgs/misc/vscode-extensions/terraform/fix-terraform-ls.patch
blob: 3d5cc51fe2a421beb7cd8741ff950f1d9e77610d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
diff --git a/out/extension.js b/out/extension.js
index 375048c..fa5eff0 100644
--- a/out/extension.js
+++ b/out/extension.js
@@ -209,20 +209,7 @@ function pathToBinary() {
         if (!_pathToBinaryPromise) {
             let command = vscodeUtils_1.config('terraform').get('languageServer.pathToBinary');
             if (!command) { // Skip install/upgrade if user has set custom binary path
-                const installDir = `${extensionPath}/lsp`;
-                const installer = new languageServerInstaller_1.LanguageServerInstaller();
-                try {
-                    yield installer.install(installDir);
-                }
-                catch (err) {
-                    vscode.window.showErrorMessage(err);
-                    reporter.sendTelemetryException(err);
-                    throw err;
-                }
-                finally {
-                    yield installer.cleanupZips(installDir);
-                }
-                command = `${installDir}/terraform-ls`;
+                command = 'TERRAFORM-LS-PATH';
             }
             _pathToBinaryPromise = Promise.resolve(command);
         }