-
Notifications
You must be signed in to change notification settings - Fork 182
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Don't nag the user about updates #783
Comments
Thank you for the suggestion @mtbambora We are considering the idea of bundling the language server with the extension. Silent updates also came up in the past - whether or not we'd still perform updates when we bundle a particular version of LS with the extension remains a question. We will need to consider some trade-offs. |
FWIW there is at least one extension which behaves exactly the same way as ours - https://marketplace.visualstudio.com/items?itemName=golang.Go I'm not suggesting this is best practice UX (I genuinely don't know what is as it doesn't seem to be documented anywhere), but just to provide some extra data/context. Generally not all extensions use language servers, but I'd really like us to list some top N popular ones which do use LS and understand how they handle the updates. |
I would be fine with a setting that allows me to turn off the notification, or to only show it when I view a Terraform file. I do a lot of work in VS Code, and only maybe 10% of it is Terraform. This notification pops up more often than I actually make Terraform changes. |
I have the situation as @robdaemon, only Terraform extension asks me to update. An option to disable notification, or even disable checking for updates would work fine. I don't need the latest and greatest. |
I propose providing three options to control update behavior: |
I agree that there needs to be an option for the user to decide whether to update the extension/language server or at all, but I disagree it needs to be inside this pop-up window. From personal experience, adding lots of buttons with short names confuses, and adding lots of buttons with long descriptive names makes the box large and distracting. I propose we honor the existing settings inside VS Code: This does mean that a user has to disable automatically updating all extensions if they do not want to update ours, but this is the pattern that VS Code wants, so I'm comfortable following it's lead. |
I have several extensions installed in VS Code, and they update themselves quite regularly. The Terraform extension is the only one that regularly pops up a dialog at VS Code launch asking me to install something else. It's great that the language server components are updated frequently - it really is! But they should be distributed with the plugin instead of this dialog asking for the user to update it. (edit: took out my unnecessary snark at the end) |
@robdaemon agreed! We're actually actively researching that, we just haven't created a issue yet. The language specific stuff we provide is in a Golang binary, which is platform specific. We would have to bundle all CPU arch and platforms we support ( 3archs, ~6 different platforms, etc) in the VSIX in order to not download ourselves. That makes the VSIX larger and take longer to extract/install and could trigger a false positive in an AV. To address this we had several approaches we were working on, but ultimately we were waiting for something called In the meantime, I understand your point about the pop-ups and that it behaves differently than VS Code expects. That's why I'm suggesting removing the pop-up question entirely and deciding based on the existing settings you control already. This way, if you have the defaults, you stay consistently updated and are never prompted. If you change the default to |
In #868 we configured the extension to silently install the terraform-ls binary without prompting the user. This is currently released in the preview extension if you would like to try this out now. We will be releasing this to stable in the near future. |
This has been released in the 2.18.0 version. Please let us know if this works for you! |
This has been out for about a month, so this is safe to close now. We also have recently bundled the terraform-ls binary inside the extension in the preivew, which removes the need to download it at all separately. This will be merged to stable soon. |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Versions
This bug is reproducible in:
Operating System
Find version and build (32-bit or 64-bit) of your OS
Steps To Reproduce
Steps to reproduce the behavior:
Expected Behavior
Upgrades should be done silently, like other VSCode extensions
Actual Behavior
A pop-up appears to nag the user to update

Additional context
So often I start VSCode and see this nagging about updating extension. Terraform extension should not nag the user.
The text was updated successfully, but these errors were encountered: