Natizyskunk / vscode-sftp

Super fast sftp/ftp extension for VS Code
Other
373 stars 68 forks source link

Watcher look on differents folders ? #386

Closed MrC8 closed 11 months ago

MrC8 commented 1 year ago

Is there a way to watch files in differents folders ? I tried something like this : "watcher": { "files": "wp-content/themes/mytheme/{folder_1,folder_2}/**/*.{js,css}", "autoUpload": true, "autoDelete": false }

satiromarra commented 12 months ago

@MrC8 Yes.

    "watcher": {
      "files": "wp-content/themes/mytheme/{folder_1,folder_2}/**/*.{js,css}",
      "autoUpload": false,
      "autoDelete": false
    }

That configuration is watching and upload when the files is modified:

"wp-content/themes/mytheme/folder_1/bak/file.css"
"wp-content/themes/mytheme/folder_1/bak/cache/file.js"
"wp-content/themes/mytheme/folder_2/bak/admin.css"
....

But not this:

"wp-content/themes/mytheme/folder_2/style.css"