liximomo / vscode-sftp

Super fast sftp/ftp extension for VS Code
MIT License
1.5k stars 256 forks source link

How to refresh (sync to local) all opened files #965

Open Gelembjuk opened 2 years ago

Gelembjuk commented 2 years ago

I am learning VS Code for PHP coding. I am looking for normal code editor for Mac (before i was on linux for 20 years) and VS code + this plugin looks best for now. However i have some question.

I usually edit PHP file directly on my server with ssh access (SFTP). I figured out how to open files on SFTP server and save them.

But i also need a way to reload all opened files. When i change git branch on my server i need to reload all opened file (all files in a local copy?) to be sure i have actual view after a branch change.

I see how i can refresh single file (right click menu and Download). How can i refresh all files? To do Download of all files? Or reset local copy of all files or refresh them?

Is there a way to do it?

ramaces commented 5 months ago

hi @Gelembjuk did u find any solution for this?

Gelembjuk commented 5 months ago

No. I didn't find. I have got different solution. I have created small bash script to "clean workspace"

It looks like

./resetworkspace.sh Data8.3 

I provide the workspace folder as the argument and it removes all cached files.

After this i have to reopen each file and i am sure it is no cached from previous session.

I still would like to have that nice feature i had in kate on ubuntu :(