actions.push(newAction('workbench.files.action.saveElevated',nls.localize('saveElevated',"Retry as Admin..."),null,true,()=>{
if(isPermissionDenied||triedToMakeWriteable){
actions.push(newAction('workbench.files.action.saveElevated',triedToMakeWriteable?nls.localize('overwriteElevated',"Overwrite as Admin..."):nls.localize('saveElevated',"Retry as Admin..."),null,true,()=>{
errorMessage=nls.localize('readonlySaveError',"Failed to save '{0}': File is write protected. Select 'Overwrite' to attempt to remove protection.",paths.basename(resource.fsPath));
if(triedToMakeWriteable){
errorMessage=nls.localize('readonlySaveErrorAdmin',"Failed to save '{0}': File is write protected. Select 'Overwrite as Admin' to retry as administrator.",paths.basename(resource.fsPath));
}else{
errorMessage=nls.localize('readonlySaveError',"Failed to save '{0}': File is write protected. Select 'Overwrite' to attempt to remove protection.",paths.basename(resource.fsPath));
}
}elseif(isPermissionDenied){
errorMessage=nls.localize('permissionDeniedSaveError',"Failed to save '{0}': Insufficient permissions. Select 'Retry as Admin' to retry as administrator.",paths.basename(resource.fsPath));
}else{
errorMessage=nls.localize('genericSaveError',"Failed to save '{0}': {1}",paths.basename(resource.fsPath),toErrorMessage(error,false));