mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-30 17:43:42 +00:00
20 lines
793 B
Diff
20 lines
793 B
Diff
diff --git a/out/serverPath.js b/out/serverPath.js
|
|
index ffb1b80..990ca2b 100644
|
|
--- a/out/serverPath.js
|
|
+++ b/out/serverPath.js
|
|
@@ -8,7 +8,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 this.context.asAbsolutePath(INSTALL_FOLDER_NAME);
|