Skip to content

Prompt to open a folder after connecting to a SSH host #511

Closed

Description

@Chuxel

Currently when you connect to a SSH host, you land in an empty window. From here you can then open a folder or open a workspace on the remote host.

While this makes sense in principal, in talking with Chris Dias (@chrisdias) and seeing a few people do it for the first time, it's not immediately obvious what to do next. This creates a rough on-boarding experience for new users.

I'd propose we instead:

  1. Connect as we do now
  2. Once the connection is complete, trigger "Open Folder" on the remote host
  3. If developers do not want to open a folder, they can then hit "ESC" and do something else instead.

Once you've initially opened a folder or workspace, you can access it again via the SSH explorer, so optimizing for the first time experience seems to make sense here.

//cc: Chris Dias (@chrisdias) roblourens Kai Maetzel (@kieferrm)

Activity

  1. added
    ssh
    feature-request
    on May 29, 2019
  2. roblourens commented on May 29, 2019

    @roblourens
    Member

    We talked about this initially but currently we don't have a way to pass some parameters through to the new window. It could be encoded in the remote authority but I don't think that's the right place for it.

  3. aeschli commented on May 29, 2019

    @aeschli
    Contributor

    If developers do not want to open a folder, they can then hit "ESC" and do something else instead.

    The ESC is a problem, it will confuse. I guess we could have a dialog that lets you select files, folders or workspaces.

  4. Chuxel commented on May 30, 2019

    @Chuxel
    MemberAuthor

    roblourens, Given the effort, Martin Aeschlimann (@aeschli) brought up a good point here that we could consider as a starting point to help orient people.

    The empty window first also solves some issues for us. One issue is that we have 3 different artifacts you can open: files/folders and workspaces, with 3 (MacOs: 2) different commands and keyboard shortcuts.
    I suggest we make the empty window experience better, e.g. by showing a welcome page with prominent open buttons.

    This welcome page could also include other features people may not be aware of like port forwarding in the SSH case given we can hyperlink commands. So it isn't annoying, we would show the welcome page the first time you get a new window for a given connection type - any SSH host or WSL, but in the SSH case we probably wouldn't need to do it for every time you connected to a new host.

    We could potentially do this for containers as well, but you end up opening a folder to get the config, so it is probably less critical there. You very much open with intent in that case -- even in the remote docker case. There's also a proposed Open Workspace in Container command to address that gap (#387).

  5. kieferrm commented on May 31, 2019

    @kieferrm
    Member

    Extensions don't have a way to contribute to the welcome page today we either need to open this up or we open a custom welcome page the same way other extensions have done. If open folder is the key problem, we can for example always show the file explorer on first connect to a remote host with an empty window. There we have a big Open Folder button.

  6. Chuxel commented on May 31, 2019

    @Chuxel
    MemberAuthor

    Kai Maetzel (@kieferrm) Hmmm. That might help -- but I think the main problem is it looks like your local empty window, so it's not obvious that the connection actually worked unless you know where to look. Pointing to what should be done next would resolve that... we could fall back on a one time notification, but we know that UX is getting to be overused. A one time custom page might be more useful.

  7. isidorn commented on Jun 6, 2019

    @isidorn

    +1 on Chuck Lantz (@Chuxel) first post. I basically wrote this in another issue:

    This empty VSCode window does provide any useful functionality and we want to get the user as soon as possible out of this. The only thing that the user can get out of this is that he is happily connected to remote.

    I propose that once the connection is made that we automatically show a quick open dialog and offer the user to choose a remote folder to open.
    I understand this is not the pattern that we commonly use, however we already have some multi step quick open actions for remote, the only difference here is that one of the steps is opening a new window.

    This opening of a dialog should only be done after the user invoked the "Connect to a Host" action, not every time he is in an empty window on remote.

    The alternative would be to make sure the explorer is opened, and we could tune the empty explorer text. To change the wording that it is clear the the user is opening a folder on the remote.

    I simply prefer the first approach since I believe it is more straight forward to the user and we skip this state where the user can no do anything useful.

  8. isidorn commented on Jun 6, 2019

    @isidorn

    To Martin Aeschlimann (@aeschli) point since we use a custom dialog we could support that the user can select anything just like on the mac.
    As for the techinical difficualty of opening this remote dialog on a new window. We could support some new parameters or there might be something we could already use Benjamin Pasero (@bpasero)

  9. bpasero commented on Jun 6, 2019

    @bpasero

    There is currently no parameter to my knowledge that opens a new window and then opens a remote file dialog.

  10. kieferrm commented on Jun 7, 2019

    @kieferrm
    Member

    The challenge we have in Remote is the same we had in the local case and we mitigated/solved by introducing the welcome page. In the Remote case we also supports editing individual files or opening folders. Therefore, opening a modal dialog on top of a new window to hint the user at what they could do next is not a great idea. We could

    • show prominently in the welcome page that this window is connected to a remote context (but it's unclear what to do with sections like Recent as those are all local when you use Remote for the first time
    • open the file explorer by default (with a clear indication about the remote context).
  11. isidorn commented on Jun 12, 2019

    @isidorn

    Kai Maetzel (@kieferrm) I can look into opening the explorer by default and polishing the message there if you think that is best?

  12. isidorn commented on Jun 21, 2019

    @isidorn

    Kai Maetzel (@kieferrm) roblourens I tried the SSH, and have a couple of questisons / feedback

    1. SSH: connect to host does not remember my previous folder, it always enters a no folder vscode. Is it possible that this action remembers the last active folder in that SSH connection? This way the user would not end up in the empty folder experience this often
    2. If we decide that showing explorer is the best way is it possible for the ssh extension to simply execute the following command once the connection is established workbench.view.explorer
    3. I could polish the empty explorer text for this case from 'You have not yet opened a folder' -> 'You are connected to an SSH remote, please open a folder'. Suggestions on wording welcome

    Unrelated to that I am still not convinced that automatically opening quick open is not the best way to go here. As for Kai's argument that users can still edit individual files and open folders -> for both those activites they need the quick open first. As far as I understand the quick open supports opening both. I am simply not aware of any action a user can do that does not require first to use quick open.

    Let me know what you think

  13. kieferrm commented on Jun 24, 2019

    @kieferrm
    Member

    Isidor Nikolic (@isidorn)

    About 1) This is an interesting idea. We'd then miss an action to open a new empty window on a SSH box since "New Window" opens a local window. So, we can't simply change the behavior here without impacting other areas.

    About 2) Sounds good. Need to find a good trigger for calling the action.

    About 3) How about: "Connected to ${host} via SSH". The "Open Folder" button would still be right below, so I think we can omit the call to open a folder in the text.

  14. isidorn commented on Jun 24, 2019

    @isidorn
    1. I think changing the behavior of that action is fine. We are changing it for the better imho and I do not see a use case we would break. The user can still exectue that action and Close Folder to get into the empty. You can also introduce a new action which would only be in the command palette and not in any prominent place. I would call it Connect to Host with Empty Workspace.... Also I would introduce this action only if we see users complaining
    2. Cool. Let me know if you would like me to provide a PR
    3. Sounds good, I can change this today since it is a good change unrelated to 1) and 2). The only questionable part of the message is via SSH, since that is specific for only 1 extension. I think a cleaner way would be to have something in common for all remote extensions. I'll check this in the afternoon
  15. 21 remaining items

  16. yenk4 commented on Mar 5, 2024

    @yenk4

    still needed

  17. spfrommer commented on Mar 14, 2024

    @spfrommer

    +1

  18. youpsla commented on Mar 28, 2024

    @youpsla

    +1

  19. smeisegeier commented on Apr 1, 2024

    @smeisegeier

    +1

  20. MoreTore commented on May 3, 2024

    @MoreTore

    +1

  21. QFlachaire commented on May 16, 2024

    @QFlachaire

    +1

  22. UNiXMIT commented on Jun 28, 2024

    @UNiXMIT

    +1

  23. 0xphilipp commented on Oct 8, 2024

    @0xphilipp

    +1

  24. Ilyua commented on Oct 23, 2024

    @Ilyua

    +1

  25. hendra-jti commented on Nov 7, 2024

    @hendra-jti

    Image

    this folder is created automatically right ? but when i access another server, those folder are not created

  26. jacasch commented on Nov 20, 2024

    @jacasch

    +1

    It would be super great if we could add a "DefaultDirectory" in the config like this

    Host <my_name>
    IdentityFile <my_public_key>
    HostName <my_host_name>
    User <user_name>
    DefaultDirectory /home

  27. altimmons commented on Nov 21, 2024

    @altimmons

    Agree with above. Awkward implementation to land nowhere.

    If you cant do the above- Default Directory key, or open folder dialog box, then at least hard code the remote client with a sensible starting place '/' or '.../home/

  28. akiyamasho commented on Dec 19, 2024

    @akiyamasho

    +1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    *out-of-scopefeature-requestssh

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions