liximomo/vscode-sftp

extension not watching files when add "context": "dist"

harjy02 opened this issue · 1 comments

hi, when i use this configuration:

}
   "uploadOnSave": false,
   "watcher": {
      "files": "dist/**/*",
      "autoUpload": true,
      "autoDelete": false
   }
}

it works well but in the sftp location everything gets uploaded under the folder dist while i don't want the folder dist to be there, i just want the content of the folder dist in the root directory so looking in some other people issue i found that i had to add "context": "dist",

so the configuration become:

{
   "uploadOnSave": false,
   "context": "dist",
   "watcher": {
      "files": "dist/**/*",
      "autoUpload": true,
      "autoDelete": false
   }
}

but with this configuration the extension doesn't seem to watch the files in dist folder, so when the files in dist folder are edited they aren't uploaded and nothing is shown in the sftp output

i resolved editing "files": "dist/**/*" to "files": "**/*"