Skip to content

Provide Command to Install all local workspace extensions into the remote #157

Closed

Description

@MOZGIII

I'd like to have a single action to simply install all local extensions on a remote host when using Remote - SSH, even if they're UI only. I have >100 extensions installed and I don't want to maintain multiple lists of them. I definitely won't be using them all at the same time, however I just want to eliminate the stopgaps I currently have when switching hosts.

Activity

  1. changed the title [-]Install all local extension remotely[/-] [+]Install all local extensions remotely[/+] on May 5, 2019
  2. egamma commented on May 6, 2019

    @egamma
    Member

    MOZGIII (@MOZGIII) you can define the set of extensions you always want to have installed using the setting remote.SSH.defaultExtensions. Does this cover your needs.

    even if they're UI only.

    UI extensions are not installed in the remote host. Have you tried the settings sync extension to cover these extensions?

  3. added
    info-needed
    on May 6, 2019
  4. MOZGIII commented on May 6, 2019

    @MOZGIII
    Author

    Hey Erich Gamma (@egamma)! I'm using settings sync already, however it does not push the extensions I want to use to the remote host. It does a great job with syncing the usual, "local" extensions though. I assume it's not supposed to push local extensions to the remote host. If I could use it somehow to achieve that - please let me know.

    What I don't want to do:

    • go through every extension individually and click the install button;
    • maintain a list of extensions other that the ones that I'm installing when I'm working locally, mainly for the purposes of there being a "single source of truth" for a list of extensions I want to use.

    I'm looking for a long-term solution here, not the one-time fix.

    If UI extensions, given they are only needed on the UI side, are not synced - that's ok with me. My point was just that I don't want to manage yet another list (like remote.SSH.defaultExtensions) with all extensions I use usually minus the UI extensions.

    In my case, I'm using VS Code on multiple machines, and one of those is beefier than all the others (combined 😄). I'm keeping my configuration in sync across all of the machines, but with this new remote feature tried working on some projects remotely on that beefy machine - even though there is a VS Code installation there already (fully configured). Not insiders version though. When I connected to the remote (using insiders version, after I pulled my settings and extensions via settings sync), my editor was clean, as if no extensions were installed. Then I figured there's this new thing - local/remote extensions.

    Naively, I expected to be able to either use the extensions that are in the remote host installation already, or use extensions I have installed on my local/ui machine. It's clearly not the second case. The first case is in question though. If it's a thing, then the reason I didn't see my extensions is because I only had a non-insiders version installed on the host, and all I had to do was to just install insiders version on the remote host and sync settings on it.
    However it may be neither - in which case there's a separate list of extensions that are explicitly installed per a vscode server - and I'd be ok with that too, if that's how it had to be implemented.

    For the use case I described above it makes most sense to just keep all the extensions in sync at all times. That would include syncing my extensions list to the remote side (vscode server) from the editor, I'm currently working with.
    My point is currently I can only install remote extensions one by one, but I don't want to hand-pick them. I don't see a point in only installing a subset of extensions that I'm using for local development for my workflow. More strictly - I don't see a point of using any other extensions set than the one I'm using for local development.

    I'd be satisfied with a button to install all locally installed extensions on remote (I'd press it every once in a while, just like I do it with settings sync - no big deal). An alternative would be to somehow configure the editor to dynamically set the value of remote.SSH.defaultExtensions to a list of all installed extensions - ideally without explicitly enumerating them all in the config file.

  5. changed the title [-]Install all local extensions remotely[/-] [+]Provide Command to Install all local workspace extensions into the remote[/+] on May 6, 2019
  6. egamma commented on May 6, 2019

    @egamma
    Member

    MOZGIII (@MOZGIII)

    I'd be satisfied with a button to install all locally installed extensions on remote (I'd press it every one in a while just like I do it with settings sync - no big deal). An alternative would be to somehow configure the editor to dynamically set the value of remote.SSH.defaultExtensions to a list of all installed extensions - ideally without explicitly enumerating them all in the config file.

    I've changed the issue title accordingly.

  7. added
    feature-request
    remote
    and removed
    info-needed
    on May 6, 2019
  8. MOZGIII commented on Jun 6, 2019

    @MOZGIII
    Author

    Hey, any changes on this?

  9. calevans commented on Jun 13, 2019

    @calevans

    I'd be satisfied with a button to install all locally installed extensions on remote (I'd press it every one in a while just like I do it with settings sync - no big deal). An alternative would be to somehow configure the editor to dynamically set the value of remote.SSH.defaultExtensions to a list of all installed extensions - ideally without explicitly enumerating them all in the config file.

    This or a setting like 'remote.SSH.defaultExtensions.syncOnConnect':true|false

    That would be super. That way whenever I make changes to the list all I have to do is disconnect and reconnect and VS Code would remove/install as needed.

  10. Chuxel commented on Jul 1, 2019

    @Chuxel
    Member

    From Iconmaster (@iconmaster5326) in #873:

    The biggest problem with using this feature is the fact that I have to re-install workspace-class extensions every time I connect to a new remote, which happens fairly often for me. I know there is an extension whitelist (remote.extensionKind in general, remote.containers.defaultExtensions for Docker, remote.SSH.defaultExtensions for SSH, etc), but what if we had an option to install every extension on a new remote, and use an extension blacklist instead? Having to manually add every extension to a configuration setting is tedious to say the least, and is fragile in the case when I install or remove extensions. Just having all of them by default would make my life a lot easier.

  11. added
    extensions
    on Jul 11, 2019
  12. sandy081 commented on Jul 23, 2019

    @sandy081
    Member

    Added a command to install local extensions on remote.

    Kapture 2019-07-23 at 19 30 57

  13. MOZGIII commented on Jul 23, 2019

    @MOZGIII
    Author

    Sandeep Somavarapu (@sandy081) Thank you very much! Here's picture of a kitten!
    image

    Is it released already?

  14. sandy081 commented on Jul 23, 2019

    @sandy081
    Member

    This will be available in tomorrow's insiders.

    Action is also available in extensions viewlet's secondary actions

    image

  15. added
    verification-needed
    and removed
    verification-needed
    on Jul 24, 2019
  16. locked and limited conversation to collaborators on Sep 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

extensionsfeature-requeston-testplanremote

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions