nixpkgs/pkgs/misc/vscode-extensions/terraform/fix-terraform-ls.patch

26 lines
1.1 KiB
Diff

diff --git a/out/extension.js b/out/extension.js
index 4a2c6a9..158fe28 100644
--- a/out/extension.js
+++ b/out/extension.js
@@ -215,19 +215,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(reporter);
- try {
- yield installer.install(installDir);
- }
- catch (err) {
- reporter.sendTelemetryException(err);
- throw err;
- }
- finally {
- yield installer.cleanupZips(installDir);
- }
- command = `${installDir}/terraform-ls`;
+ command = 'TERRAFORM-LS-PATH';
}
else {
reporter.sendTelemetryEvent('usePathToBinary');