Skip to content

Commit eee87b1

Browse files
authored
[extension_discovery] Fix reliablyRename always throwing after rename on Windows (#2726)
1 parent 43b8936 commit eee87b1

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

‎pkgs/extension_discovery/CHANGELOG.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
## 2.1.1-wip
22

33
- Prevent symlinks from causing `config.yaml` to be read from outside the package folder.
4+
- Fix `reliablyRename` on Windows always throwing after a successful rename.
45

56
## 2.1.0
67

‎pkgs/extension_discovery/lib/src/io.dart‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ Future<T> _attempt<T>(FutureOr<T> Function() fn) async {
3434
var attempts = 0;
3535
while (true) {
3636
try {
37-
await fn();
37+
return await fn();
3838
} on FileSystemException catch (e) {
3939
attempts += 1;
4040
if (attempts >= _maxAttempts) rethrow;

0 commit comments

Comments
 (0)