constconflictEditorHelp=nls.localize('userGuide',"Use the actions in the editor tool bar to either undo your changes or overwrite the content on disk with your changes");
constconflictEditorHelp=nls.localize('userGuide',"Use the actions in the editor tool bar to either undo your changes or overwrite the content on disk with your changes.");
// A handler for save error happening with conflict resolution actions
message=nls.localize('staleSaveError',"Failed to save '{0}': The content on disk is newer. Please compare your version with the one on disk.",paths.basename(resource.fsPath));
consteditorLabel=nls.localize('saveConflictDiffLabel',"{0} (on disk) ↔ {1} (in {2}) - Resolve save conflict",name,name,this.environmentService.appNameLong);
pendingResolveSaveConflictMessages.push(this.notificationService.notify({severity:Severity.Info,message:conflictEditorHelp}));// Inform user
});
}
// Otherwise show the message that will lead the user into the save conflict editor.
else{
message=nls.localize('staleSaveError',"Failed to save '{0}': The content on disk is newer. Please compare your version with the one on disk.",paths.basename(resource.fsPath));
@@ -143,45 +144,24 @@ export class SaveErrorHandler implements ISaveErrorHandler, IWorkbenchContributi
// Save Elevated
if(isPermissionDenied||triedToMakeWriteable){
actions.primary.push(newAction('workbench.files.action.saveElevated',triedToMakeWriteable?nls.localize('overwriteElevated',"Overwrite as Admin..."):nls.localize('saveElevated',"Retry as Admin..."),null,true,()=>{
consteditorLabel=nls.localize('saveConflictDiffLabel',"{0} (on disk) ↔ {1} (in {2}) - Resolve save conflict",name,name,this.environmentService.appNameLong);
super('workbench.files.action.saveElevated',triedToMakeWriteable?nls.localize('overwriteElevated',"Overwrite as Admin..."):nls.localize('saveElevated',"Retry as Admin..."));