liximomo / vscode-sftp

Super fast sftp/ftp extension for VS Code
MIT License
1.5k stars 256 forks source link

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

Closed harjy02 closed 2 years ago

harjy02 commented 2 years ago

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

harjy02 commented 2 years ago

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