@@ -356,9 +358,10 @@ export class RemoteFileDialog {
// Can't do this
this.filePickBox.validationMessage=nls.localize('remoteFileDialog.validateFolder','The folder already exists. Please use a new file name.');
returnPromise.resolve(false);
}elseif(stat){
// This is replacing a file. Not supported yet.
this.filePickBox.validationMessage=nls.localize('remoteFileDialog.validateExisting','The file already exists. Please use a new file name.');
}elseif(stat&&!this.shouldOverwriteFile){
// Replacing a file.
this.shouldOverwriteFile=true;
this.filePickBox.validationMessage=nls.localize('remoteFileDialog.validateExisting','{0} already exists. Are you sure you want to overwrite it?',resources.basename(uri));