lukasz-wronski / vscode-ftp-sync

Ftp Sync plugin for Visual Studio Code
https://marketplace.visualstudio.com/items/lukasz-wronski.ftp-sync
321 stars 83 forks source link

uploadOnSave and directory creation issues #365

Open Ackerven opened 1 year ago

Ackerven commented 1 year ago

I use ftp-sync in Visual Studio Code, it's a great plugin and it solves a lot of my needs.

During use, I found some problems with ftp-sync:

  1. I set uploadOnSave to flase in .vscode/ftp-sync.json, but it will still upload automatically when saving
  2. When I create a directory in vscode, it automatically creates a file with the same name on the server

image

This is the debug log:

9/3/2023 @ 8:42:54 > [sync-helper] uploading: time
9/3/2023 @ 8:42:54 > [sync-helper] connect

Here is my configuration file:

{
    "remotePath": "vth/vth-notebook2/src",
    "host": "**secret**",
    "username": "**secret**",
    "password": "**secret**",
    "port": 22,
    "secure": false,
    "protocol": "sftp",
    "uploadOnSave": false,
    "passive": false,
    "debug": true,
    "privateKeyPath": null,
    "passphrase": null,
    "agent": null,
    "allow": [],
    "ignore": [
        "\\.vscode",
        "\\.git",
        "\\.DS_Store",
        "\\.node_modules"
    ],
    "generatedFiles": {
        "extensionsToInclude": [
            ""
        ],
        "path": ""
    }
}
nguyentrongbangspectos commented 1 year ago

Same issue with @Ackerven. It uploads automatically although I set "uploadOnSave": false, Using Ubuntu and VS latest version