satiromarra / vscode-sftp

Super fast sftp/ftp extension for VS Code
Other
23 stars 3 forks source link

File Watcher Array #39

Closed evtimov closed 1 year ago

evtimov commented 1 year ago

Hi @satiromarra,

This request is not related to a problem and it isn't a duplicate feature request.

Do you think it's possible to add an option to set multiple file locations in the watcher config? For example I only need to watch the /project/css/them*{.scss,.css,.map} files and all files inder the /project/js/ folders for changes and auto upload if any.

I would image something like this if possible:

"watcher": {
    "files": [
          "**/project/css/them*{.scss,.css,.map}",
          "**/project/js"
    ],
    "autoUpload": true,
    "autoDelete": false
}

If there is another way to achieve this, please let me know.

Thank you!

Does this project help you? [x] Yes. SFTP IS AWESOME!

satiromarra commented 1 year ago

I use a configuration like this, in case it can work for you: /project/{css,js}/{them*,otherfile*}{.scss,.css,.map,.ts,.js}

evtimov commented 1 year ago

Oh I see, yes perfect, thank you.