We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
CancellationScope
1 parent e39613b commit 9926944Copy full SHA for 9926944
src/PowerShellEditorServices/Services/PowerShell/Utility/CancellationContext.cs
@@ -1,4 +1,4 @@
1
-// Copyright (c) Microsoft Corporation.
+// Copyright (c) Microsoft Corporation.
2
// Licensed under the MIT License.
3
4
using System;
@@ -109,8 +109,10 @@ internal CancellationScope(
109
110
public void Dispose()
111
{
112
+ // TODO: This is whack. It used to call `Cancel` on the cancellation source, but we
113
+ // shouldn't do that!
114
+ _cancellationSource.Dispose();
115
_cancellationStack.TryPop(out CancellationScope _);
- _cancellationSource.Cancel();
116
}
117
118
0 commit comments