cweijan / vscode-database-client

Database Client For Visual Studio Code
https://database-client.com
MIT License
2.39k stars 264 forks source link

[FEATURE] Remote -> Local Path Mapping #1178

Closed lankhaar closed 2 weeks ago

lankhaar commented 2 weeks ago

Hi and thanks for this amazing extension you delivered! :-D

I wondered, would it be possible to provide a path mapping from local to remote so that when the user tries to up-/download a file or directory, it will automatically map the item to the respective location in the application.

image

Perhaps this could then go hand in hand with new features like an "open in remote" and "upload to remote" context item when right clicking a file in the project tree.

How it works

Example

For download:

For upload:

cweijan commented 2 weeks ago

I don't understand what this feature does. Is there any other software that provides this feature?

If the path is too deep, you may consider using the favorite. image

lankhaar commented 2 weeks ago

Hi @cweijan and thanks for your quick response!

Yes there's other software that provides this functionality. All JetBrains IDE's do for instance.

I have updated the issue with a how it works, I hope it's more clear now :-)

cweijan commented 2 weeks ago

Thanks for the detailed addition, but sorry I don't plan to develop this feature, I think git should be used for code synchronization.

lankhaar commented 1 week ago

Hi @cweijan , Although I completely respect your desicion on this topic, I'm not really sure why you mention using git for code synchronization. I obviously do and am not requesting this feature so I could deploy entire features to a remote server. There's a lot of use cases where you'd want to sync a file from local to remote or vice versa which doesn't actually involve a replacement of continues deployment. Why support upload/download at all if this is your point of view?

Only reason I requested this feature is because I knew it from Jetbrains products and it was a huge quality of life. I thought perhaps you could also include this since it expands on an existing feature, introducing a huge quality of life to everyone who does use the upload/download for whatever reason.

Again; I completely respect your decision if you indeed decide not to implement it, I love the extension and your work. I just wanted to clear the air the on misconception that this feature is only for code synchronization as a replacement of CD