vscode-ftp-sync
vscode-ftp-sync copied to clipboard
"uploadOnSave" doesn't work - FIXED
If "uploadOnSave": false it still uploads on Saving. How to fix that ?
If somebody knows how to implement it, here is the Fix:
on-generate.js ( C:\Users\<User>\.vscode\extensions\lukasz-wronski.ftp-sync-0.3.9\modules )
module.exports = function(document, getFtpSync, skipOnSaveCheck) {
if (document.uri.fsPath.indexOf(ftpconfig.rootPath().fsPath) < 0) return;
var config = ftpconfig.getConfig();
if (!config.uploadOnSave && !skipOnSaveCheck) return; // <------ THE FIX
Hi,
I have the same problem, can't stop files uploading on save.
I tried adding the suggested line to on-generate.js but it didn't work for me. Tried restarting vs code too,
Is there something else I need to do?
Steve
Try this one:
if (!config.uploadOnSave) return;
Hi Dirk,
That works, thank you so much!
Steve
You are welcome Steve.
Try this one:
if (!config.uploadOnSave) return;
Works!