mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-25 02:58:56 +01:00
rename FileError to FileSystemError, #47475
This commit is contained in:
@@ -692,7 +692,7 @@ export function createApiFactory(
|
||||
FileChangeType2: extHostTypes.FileChangeType2,
|
||||
FileType2: extHostTypes.FileType2,
|
||||
FileOpenFlags: files.FileOpenFlags,
|
||||
FileError: extHostTypes.FileError,
|
||||
FileSystemError: extHostTypes.FileSystemError,
|
||||
FoldingRange: extHostTypes.FoldingRange,
|
||||
FoldingRangeKind: extHostTypes.FoldingRangeKind
|
||||
};
|
||||
|
||||
@@ -1838,19 +1838,19 @@ export enum FileType2 {
|
||||
SymbolicLink = 4,
|
||||
}
|
||||
|
||||
export class FileError extends Error {
|
||||
export class FileSystemError extends Error {
|
||||
|
||||
static EntryExists(message?: string): FileError {
|
||||
return new FileError(message, 'EntryExists', FileError.EntryExists);
|
||||
static EntryExists(message?: string): FileSystemError {
|
||||
return new FileSystemError(message, 'EntryExists', FileSystemError.EntryExists);
|
||||
}
|
||||
static EntryNotFound(message?: string): FileError {
|
||||
return new FileError(message, 'EntryNotFound', FileError.EntryNotFound);
|
||||
static EntryNotFound(message?: string): FileSystemError {
|
||||
return new FileSystemError(message, 'EntryNotFound', FileSystemError.EntryNotFound);
|
||||
}
|
||||
static EntryNotADirectory(message?: string): FileError {
|
||||
return new FileError(message, 'EntryNotADirectory', FileError.EntryNotADirectory);
|
||||
static EntryNotADirectory(message?: string): FileSystemError {
|
||||
return new FileSystemError(message, 'EntryNotADirectory', FileSystemError.EntryNotADirectory);
|
||||
}
|
||||
static EntryIsADirectory(message?: string): FileError {
|
||||
return new FileError(message, 'EntryIsADirectory', FileError.EntryIsADirectory);
|
||||
static EntryIsADirectory(message?: string): FileSystemError {
|
||||
return new FileSystemError(message, 'EntryIsADirectory', FileSystemError.EntryIsADirectory);
|
||||
}
|
||||
|
||||
constructor(message?: string, code?: string, hide?: Function) {
|
||||
|
||||
Reference in New Issue
Block a user