vscode-sftp
vscode-sftp copied to clipboard
FEATURE REQUEST: Delete/move local and remote
Expected Behavior
In reference to following issue: #262
All local file (and folder) operations in VS Code should also be performed remotely.
I want to keep remote file operations in Remote Explorer.
For what reason? In my oppinion this only increases the workload.
Actual Behavior
Files are often renamed, moved or deleted. All these operations are not performed remotely, which leads to unnecessary files on the remote server.
Steps to Reproduce the Problem
- Create a file locally
- Rename or delete this file
- Take a look on the remote server -> the initial file can still be found on the remote server
Specifications
- Version: 1.5.7
- Platform: Windows 10 64bit
You can remove unwanted files from remote with SFTP: Sync to Remote
. This will make sure the remote is exactly the same with local.
Yeah, that's right. But that is another manual step that I would like to avoid. It could also be forgotten in everyday working life. Therefore, it is important for me that this happens automatically with the local operation.
Is there a way to trigger SFTP: Sync to Remote
automatically together with the update / delete oparations? This would help for the moment.
Thank you!
+1 to this, I think it would be ideal to have a dropdown menu in the Right menu, and there we could select: remove local and remote, rename local and remote, etc.
@Fabrazer @gergokoos rename and remove will come soon.
Experimenting more on this, sync local -> remote lets you select a folder, but i couldn't find how to select a subfolder. I wanted to sync /root/foo, and it synced all /root with all their subfolders in a very big project.
In addition to add options like
rename local and remote file/folder
, remove local and remote file/folder
, etc, i think that the sync local -> remote
options should be done for the file or level you have opened / selected in the sidebar.
As a user coming from NetBeans. The lack of this feature feels crippling to me. True local to remote syncing would automatically handle this when a file is moved, removed, deleted, or renamed.
The primary situation in which this is super useful is if you're pulling a branch or checking out another branch, remote behaves accordingly.
The manual sync to server is not ideal, as sometimes we need to work with very large code bases, and a full sync takes forever.
@mstonepc
The primary situation in which this is super useful is if you're pulling a branch or checking out another branch, remote behaves accordingly.
How does delete local and remote
work in this situation? If a branch checking out result a file get removed from local. How could you run delete local and remote
on an removed file?
How does
delete local and remote
work in this situation? It a branch checking out result a file get removed from local. How could you rundelete local and remote
on an removed file?
You wouldn't.. you would just sync the local changes to remote. The watcher should be able to handle this scenario. The main point of this request is not having to remember to manually duplicate these actions on the server.
i need this This needs to be implemented ASAP! make any changes in loacal, reflected on the remote server!
You can remove unwanted files from remote with SFTP: Sync to Remote. This will make sure the remote is exactly the same with local.
I get an error whenever i do this: :/ device or resource busy
[error] Error: /: Device or resource busy
at v (C:\Users\Camden_2.vscode\extensions\liximomo.sftp-1.8.1\dist\extension.js:70:106078)
at d.
@liximomo please help me out here! slightly annoying! i think this should be automatic, as suggested above!
@mstonepc
"watcher": {
files: "**/*",
"autoUpload": true,
"autoDelete": false
}
I would be glad to see an option for this behavior. By this I mean that if I want the local actions be performed remotely, I can set the config for this. In most of my projects the sync local > remote will take way too long. But the user should decide what behavior is the right for his environment.
Is there any indication when this would be released?