Skip to content

Commit 077b17f

Browse files
committed
Merge pull request #632 from ckuhn203/cursor
Handled untrapped Cancellation exception.
2 parents e50dec8 + eb718ce commit 077b17f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

RetailCoder.VBE/UI/CodeInspections/CodeInspectionsDockablePresenter.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,11 @@ private async Task RefreshAsync(CancellationToken token)
198198
var projectParseResult = await _inspector.Parse(VBE.ActiveVBProject, this);
199199
_results = await _inspector.FindIssuesAsync(projectParseResult, token);
200200
}
201+
catch (TaskCanceledException)
202+
{
203+
// If FindIssuesAsync is canceled, we can leave the old results or
204+
// create a new List. Let's leave the old ones for now.
205+
}
201206
catch (COMException)
202207
{
203208
// burp

0 commit comments

Comments
 (0)