You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -356,9 +358,10 @@ export class RemoteFileDialog {
356
358
// Can't do this
357
359
this.filePickBox.validationMessage=nls.localize('remoteFileDialog.validateFolder','The folder already exists. Please use a new file name.');
358
360
returnPromise.resolve(false);
359
-
}elseif(stat){
360
-
// This is replacing a file. Not supported yet.
361
-
this.filePickBox.validationMessage=nls.localize('remoteFileDialog.validateExisting','The file already exists. Please use a new file name.');
361
+
}elseif(stat&&!this.shouldOverwriteFile){
362
+
// Replacing a file.
363
+
this.shouldOverwriteFile=true;
364
+
this.filePickBox.validationMessage=nls.localize('remoteFileDialog.validateExisting','{0} already exists. Are you sure you want to overwrite it?',resources.basename(uri));
0 commit comments