File tree 3 files changed +2
-3
lines changed
3 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ private async Task ExecuteAsync(
63
63
string pathFilter ,
64
64
[ CanBeNull ] Func < GitRevision , bool > revisionPredicate )
65
65
{
66
- ThreadHelper . ThrowIfNotOnUIThread ( ) ;
66
+ await ThreadHelper . JoinableTaskFactory . SwitchToMainThreadAsync ( ) ;
67
67
68
68
var token = _cancellationTokenSequence . Next ( ) ;
69
69
Original file line number Diff line number Diff line change 7
7
</Rules >
8
8
<Rules AnalyzerId =" Microsoft.VisualStudio.Threading.Analyzers" RuleNamespace =" Microsoft.VisualStudio.Threading.Analyzers" >
9
9
<Rule Id =" VSTHRD010" Action =" None" />
10
- <Rule Id =" VSTHRD109" Action =" None" />
11
10
<Rule Id =" VSTHRD110" Action =" None" />
12
11
</Rules >
13
12
<Rules AnalyzerId =" StyleCop.Analyzers" RuleNamespace =" StyleCop.Analyzers" >
Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ public void SetBranchFilterer(FilterBranchHelper filterBranchHelper)
57
57
58
58
public async Task ReloadAsync ( )
59
59
{
60
- ThreadHelper . ThrowIfNotOnUIThread ( ) ;
60
+ await this . SwitchToMainThreadAsync ( ) ;
61
61
62
62
var token = CancelBackgroundTasks ( ) ;
63
63
Enabled = false ;
You can’t perform that action at this time.
0 commit comments