Skip to content

"code --install-extension" sometimes prompt the user, making it unsuitable for batch use #58965

Closed

Description

When running:

% code --install-extension a.b

If a.b has already been installed and a newer version exists, a prompt appears:

a.b ... is already installed, but a newer version 4.8.2 is available in the marketplace. Would you like to update? Yes(Y) | No(N)

It'd be nice if there was a command option like --yes that answered yes to all questions. There's already --force but it doesn't fit exactly: if the extension has already been installed and no newer version exists, it will redownload the extension from the marketplace anyway.

Activity

  1. added
    extensions
    on Sep 19, 2018
  2. added
    *duplicate
    on Sep 21, 2018
  3. sandy081 commented on Sep 21, 2018

    @sandy081
    Member

    Duplicate of #58434

  4. vscodebot commented on Sep 21, 2018

    @vscodebot

    Thanks for creating this issue! We figured it's covering the same as another one we already have. Thus, we closed this one as a duplicate. You can search for existing issues here. See also our issue reporting guidelines.

    Happy Coding!

  5. smarter commented on Sep 21, 2018

    @smarter
    Author

    Sandeep Somavarapu (@sandy081) As I mentioned in the description of this issue, --force is not good enough because it will reinstall an already installed extension. Would you be open to changing --force to not do that, or add a --yes that simply responds yes to every question?

  6. sandy081 commented on Sep 24, 2018

    @sandy081
    Member

    Guillaume Martres (@smarter) Good point, Updated to not to reinstall when --force is used

  7. added a commit that references this issue on Sep 24, 2018
  8. locked and limited conversation to collaborators on Nov 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

*duplicateextensions

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions