vscode-extensions.hashicorp.terraform: 2.19.0 -> 2.34.3
This commit is contained in:
@@ -7,14 +7,13 @@ vscode-utils.buildVscodeMarketplaceExtension {
|
||||
mktplcRef = {
|
||||
name = "terraform";
|
||||
publisher = "hashicorp";
|
||||
version = "2.19.0";
|
||||
hash = "sha256-k/fcEJuELz0xkwivSrP6Nxtz861BLq1wR2ZDMXVrvkY=";
|
||||
version = "2.34.3";
|
||||
hash = "sha256-kE9xH0cp741aCqhrwFDW+lQxOAsdLNzCCOTWMxd+li0=";
|
||||
};
|
||||
|
||||
patches = [ ./fix-terraform-ls.patch ];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace out/serverPath.js --replace TERRAFORM-LS-PATH ${terraform-ls}/bin/terraform-ls
|
||||
substituteInPlace dist/extension.js \
|
||||
--replace-fail 'this.customBinPath=Ga("terraform").get("languageServer.path")' 'this.customBinPath = Ga("terraform").get("languageServer.path") || '${terraform-ls}/bin/terraform-ls';'
|
||||
'';
|
||||
|
||||
meta = {
|
||||
|
||||
-19
@@ -1,19 +0,0 @@
|
||||
diff --git a/out/serverPath.js b/out/serverPath.js
|
||||
index fafa915..2e6d376 100644
|
||||
--- a/out/serverPath.js
|
||||
+++ b/out/serverPath.js
|
||||
@@ -18,7 +18,13 @@ exports.CUSTOM_BIN_PATH_OPTION_NAME = 'languageServer.pathToBinary';
|
||||
class ServerPath {
|
||||
constructor(context) {
|
||||
this.context = context;
|
||||
- this.customBinPath = vscode.workspace.getConfiguration('terraform').get(exports.CUSTOM_BIN_PATH_OPTION_NAME);
|
||||
+
|
||||
+ const customBinPath = vscode.workspace.getConfiguration('terraform').get(exports.CUSTOM_BIN_PATH_OPTION_NAME);
|
||||
+ if (!customBinPath) {
|
||||
+ this.customBinPath = 'TERRAFORM-LS-PATH';
|
||||
+ } else {
|
||||
+ this.customBinPath = customBinPath;
|
||||
+ }
|
||||
}
|
||||
installPath() {
|
||||
return path.join(this.context.globalStorageUri.fsPath, INSTALL_FOLDER_NAME);
|
||||
Reference in New Issue
Block a user