We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 565069c commit e065311Copy full SHA for e065311
src/providers/FileSystemProvider/FileSystemProvider.ts
@@ -960,7 +960,9 @@ export class FileSystemProvider implements vscode.FileSystemProvider {
960
)
961
.catch((error) => {
962
if (error?.statusCode == 304 && cachedFile) return cachedFile;
963
- throw vscode.FileSystemError.FileNotFound(stringifyError(error) || uri);
+ const errArg = stringifyError(error) || uri;
964
+ if (error?.statusCode == 404) throw vscode.FileSystemError.FileNotFound(errArg);
965
+ throw vscode.FileSystemError.Unavailable(errArg);
966
});
967
}
968
0 commit comments