vscode icon indicating copy to clipboard operation
vscode copied to clipboard

Show a visual cue that a connection is configured with SSH Tunnel?

Open SethFalco opened this issue 3 years ago • 0 comments

Feature Request

Detailed Description

Think a visual cue could be added on connections with SSH tunnel configured? 🤔

Context

I'm thinking this may just be a UX improvement, namely when someone wants to do "Copy Connection String", but that may not work as-is without being on the right host or without the SSH tunnel configuration. I thought this might be a minor way to remind a user that they configured with SSH Tunnel so the connection string might not be the only thing you or someone else needs.

(TL;DR: I'm an idiot and tried sharing the connection string and forgot that was configured.)

Possible Implementation

I think the best solution would be to allow users to copy the SSH Tunnel configuration from secondary-click as well. If SSH Tunnel is not configured, then the context-menu item can be disabled.

This way not only is that visual cue offered to users, but it's also convenient to copy and share that with whoever I want to provide the means to connect to that database as well too.

Alternative solutions could just include:

  • Putting a symbol next to the connection item in the connections view.
  • Put a symbol in the context menu item if that can be done conditionally, but I think that'd be a hassle.

SethFalco avatar Jul 07 '22 18:07 SethFalco