question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Files edited externally are uploaded with 'watcher["files"]' set to false, if 'uploadOnSave' is set to true

See original GitHub issue

Issue:

If uploadOnSave is true, then files saved externally will upload, even if watcher["files"] is false.

Relevant Settings:

{
    ...
    "uploadOnSave": true,
    "watcher": {
        "files": false,
        "autoUpload": false,
        "autoDelete": false
    }
}

Steps to duplicate:

  • Create a new file myfile.txt
  • Set uploadOnSave to true
  • Set watcher["files"] to false
  • Change myfile.txt with Notepad (or any external program) and save.
  • Note that myfile.txt is uploaded to the server, even though watcher["files"] is false.

What should happen:

  • When watcher["files"] is false, files changed externally should not upload, even when uploadOnSave is true.

Please fix this. It is very annoying. It causes my local .git/ files to upload to the server.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
liximomocommented, Nov 7, 2017

@duanehutchins Now it works the way you like.

0reactions
liximomocommented, Jul 25, 2017

A similar extension, ftp-sync, only uploads changed files when saved in the vscode editor (not from external sources).

That’s the reason why I write another one. I think that be aware of external change it’s a power, not a limitation. I will consider adding a config to change this behavior.

Read more comments on GitHub >

github_iconTop Results From Across the Web

visual studio code - vscode git, sftp configure - Stack Overflow
I find that sftp option "uploadOnSave": true, "syncMode": "full", "watcher": { "files": "**", "autoUpload": true, "autoDelete": true },.
Read more >
FTP Sync Local & Remote Server files with VS code - YouTube
Increase your productivity in the Visual Studio Code Editor by simple synchronizing of your project files while saving them from a local to ......
Read more >
VSCode FTP / edit remote files / download and ... - YouTube
How to edit remote files in vscode. Hey guys let's use vscode ftp to upload and download files #vscode #visualstudiocode 00:00 vscode FTP ......
Read more >
How to use FTP Simple in Visual Studio Code - YouTube
Being able to connect to a web server and make changes without having to download files, open them with a code editor and...
Read more >
FTP-Sync for VSCode | Upload Files on Save Vs-Code
FTP-Sync is an Extension for VS Code, which automatically uploads the file when we SAVE the changes.How to use the FTP-Sync extension for...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found