code_review: PR #1492

- Remove all synchronous method in commands
- `Command.ReadToEndAsync` now is protected method
- Rename `ResultAsync` to `GetResultAsync`
- Call `ConfigureAwait(false)` when there's no context

Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
leo
2025-07-03 10:15:14 +08:00
parent 463e304491
commit 40765826ce
166 changed files with 1625 additions and 2163 deletions

View File

@@ -65,10 +65,11 @@ namespace SourceGit.ViewModels
await new Commands.Submodule(_repo.FullPath)
.Use(log)
.UpdateAsync(targets, EnableInit, EnableRecursive, EnableRemote);
.UpdateAsync(targets, EnableInit, EnableRecursive, EnableRemote)
.ConfigureAwait(false);
log.Complete();
await CallUIThreadAsync(() => _repo.SetWatcherEnabled(true));
_repo.SetWatcherEnabled(true);
return true;
}