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
thrownewFileOperationError(localize('invalidPath',"The path of resource '{0}' must be absolute",this.resourceForError(resource)),FileOperationResult.FILE_INVALID_PATH);
109
+
thrownewFileOperationError(localize('invalidPath',"Unable to resolve filesystem provider with relative file path '{0}'",this.resourceForError(resource)),FileOperationResult.FILE_INVALID_PATH);
thrownewError(`Provider for scheme '${resource.scheme}' neither has FileReadWrite, FileReadStream nor FileOpenReadWriteClose capability which is needed for the read operation.`);
135
+
thrownewError(`Filesystem provider for scheme '${resource.scheme}' neither has FileReadWrite, FileReadStream nor FileOpenReadWriteClose capability which is needed for the read operation.`);
thrownewError(`Provider for scheme '${resource.scheme}' neither has FileReadWrite nor FileOpenReadWriteClose capability which is needed for the write operation.`);
145
+
thrownewError(`Filesystem provider for scheme '${resource.scheme}' neither has FileReadWrite nor FileOpenReadWriteClose capability which is needed for the write operation.`);
thrownewFileOperationError(localize('fileExists',"File to create already exists ({0})",this.resourceForError(resource)),FileOperationResult.FILE_MODIFIED_SINCE,options);
295
+
thrownewFileOperationError(localize('fileExists',"Unable to create file '{0}' that already exists when overwrite flag is not set",this.resourceForError(resource)),FileOperationResult.FILE_MODIFIED_SINCE,options);
thrownewFileOperationError(localize('fileIsDirectoryError',"Expected file '{0}' is actually a directory",this.resourceForError(resource)),FileOperationResult.FILE_IS_DIRECTORY,options);
358
+
thrownewFileOperationError(localize('fileIsDirectoryWriteError',"Unable to write file '{0}' that is actually a directory",this.resourceForError(resource)),FileOperationResult.FILE_IS_DIRECTORY,options);
359
359
}
360
360
361
361
// Dirty write prevention: if the file on disk has been changed and does not match our expected
thrownewFileOperationError(localize('fileIsDirectoryError',"Expected file '{0}' is actually a directory",this.resourceForError(resource)),FileOperationResult.FILE_IS_DIRECTORY,options);
507
+
thrownewFileOperationError(localize('fileIsDirectoryReadError',"Unable to read file '{0}' that is actually a directory",this.resourceForError(resource)),FileOperationResult.FILE_IS_DIRECTORY,options);
508
508
}
509
509
510
510
// Throw if file not modified since (unless disabled)
thrownewFileOperationError(localize('fileTooLargeError',"File '{0}' is too large to open",this.resourceForError(resource)),tooLargeErrorResult);
534
+
thrownewFileOperationError(localize('fileTooLargeError',"Unable to read file '{0}' that is too large to open",this.resourceForError(resource)),tooLargeErrorResult);
// Bail out if target exists and we are not about to overwrite
695
695
if(!overwrite){
696
-
thrownewFileOperationError(localize('unableToMoveCopyError3',"Unable to move/copy since a file already exists at destination."),FileOperationResult.FILE_MOVE_CONFLICT);
696
+
thrownewFileOperationError(localize('unableToMoveCopyError3',"Unable to move/copy '{0}' because target '{1}' already exists at destination.",this.resourceForError(source),this.resourceForError(target)),FileOperationResult.FILE_MOVE_CONFLICT);
697
697
}
698
698
699
699
// Special case: if the target is a parent of the source, we cannot delete
700
700
// it as it would delete the source as well. In this case we have to throw
thrownewError(localize('unableToMoveCopyError4',"Unable to move/copy since a file would replace the folder it is contained in."));
704
+
thrownewError(localize('unableToMoveCopyError4',"Unable to move/copy '{0}' into '{1}' since a file would replace the folder it is contained in.",this.resourceForError(source),this.resourceForError(target)));
thrownewError(localize('mkdirExistsError',"Path '{0}' already exists, but is not a directory",this.resourceForError(directory)));
733
+
thrownewError(localize('mkdirExistsError',"Unable to create folder '{0}' that already exists but is not a directory",this.resourceForError(directory)));
734
734
}
735
735
736
736
break;// we have hit a directory that exists -> good
thrownewError(localize('err.trash',"Provider for scheme '{0}' does not support trash.",resource.scheme));
765
+
thrownewError(localize('deleteFailedTrashUnsupported',"Unable to delete file '{0}' via trash because provider does not support it.",this.resourceForError(resource)));
766
766
}
767
767
768
768
// Validate delete
769
769
constexists=awaitthis.exists(resource);
770
770
if(!exists){
771
-
thrownewFileOperationError(localize('fileNotFoundError',"File not found ({0})",this.resourceForError(resource)),FileOperationResult.FILE_NOT_FOUND);
771
+
thrownewFileOperationError(localize('deleteFailedNotFound',"Unable to delete non-existing file '{0}'",this.resourceForError(resource)),FileOperationResult.FILE_NOT_FOUND);
thrownewFileOperationError(localize('err.readonly',"Resource '{0}' can not be modified.",this.resourceForError(resource)),FileOperationResult.FILE_PERMISSION_DENIED);
1062
+
thrownewFileOperationError(localize('err.readonly',"Unable to modify readonly file '{0}'",this.resourceForError(resource)),FileOperationResult.FILE_PERMISSION_DENIED);
0 commit comments