Skip to content
This repository was archived by the owner on Oct 16, 2020. It is now read-only.

Commit 9142230

Browse files
committed
Context actions: don't catch OperationCanceledException
1 parent 00075c0 commit 9142230

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/AddIns/BackendBindings/CSharpBinding/Project/Src/Refactoring/CSharpCodeActionProviderDoozer.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,8 @@ async delegate {
115115
CSharpAstResolver resolver = await context.GetAstResolverAsync().ConfigureAwait(false);
116116
var refactoringContext = new SDRefactoringContext(context.TextSource, resolver, context.CaretLocation, selectionStart, selectionLength, cancellationToken);
117117
return codeActionProvider.GetActions(refactoringContext).Select(Wrap).ToArray();
118+
} catch (OperationCanceledException) {
119+
throw; // don't catch cancellations
118120
} catch (Exception ex) {
119121
SD.Log.WarnFormatted("CSharpContextActionProviderWrapper crashed: {0}", ex);
120122
SD.AnalyticsMonitor.TrackException(ex);

0 commit comments

Comments
 (0)