Skip to content
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

Enable drag and drop for files in the connection form #283

Open
nathanielfink opened this issue Apr 7, 2021 · 1 comment
Open

Enable drag and drop for files in the connection form #283

nathanielfink opened this issue Apr 7, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@nathanielfink
Copy link

Bug Report

Current Behavior

Code/Gist

Expected Behavior/Code

When setting up a new SSH Tunnel Connection with Use Identify File, the file picker automatically turns off "Show Hidden Files", thereby blocking access to .ssh. There is also no drag & drop option available, so key files inside .ssh aren't selectable. This pretty much makes this extension unusable for remote database connections through SSH in Linux.

Environment

  • node.js / npm versions:
  • OS:
    Xubuntu 20.10

Possible Solution

Do not automatically turn off "Show Hidden Files" when opening the file picker.

Additional Context/Screenshots

@Anemy
Copy link
Member

Anemy commented Apr 9, 2021

Hi @nathanielfink - thanks for reporting - unfortunately I don't believe this is something we have control over with the open file dialogue. Looking at vscode's open file options documentation it looks like we don't have an option to specify that default.
https://code.visualstudio.com/api/references/vscode-api#OpenDialogOptions
On mac it's possible to show hidden files with command+shift+..
Maybe there's a similar way to show hidden files inside the file picker dialogue on linux?

I do think we could enable drag and drop for files so we can leave this open as a feature request for that.

For context here's where we use it in our code:
https://github.com/mongodb-js/vscode/blob/master/src/views/webviewController.ts#L119

@Anemy Anemy added the enhancement New feature or request label Jun 28, 2021
@Anemy Anemy changed the title Bug Report Enable drag and drop for files in the connection form Jun 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants