Skip to content

Commit c5dafa2

Browse files
Remove workarounds for bugs that have been fixed (#78779)
Closes #77995
2 parents 73e1466 + 670cd85 commit c5dafa2

File tree

2 files changed

+0
-27
lines changed

2 files changed

+0
-27
lines changed

src/EditorFeatures/TestUtilities/TestExtensionErrorHandler.cs

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -27,27 +27,6 @@ public TestExtensionErrorHandler()
2727

2828
public void HandleError(object sender, Exception exception)
2929
{
30-
// Work around bug that is fixed in https://devdiv.visualstudio.com/DevDiv/_git/VS-Platform/pullrequest/209513
31-
if (exception is NullReferenceException &&
32-
exception.StackTrace.Contains("SpanTrackingWpfToolTipPresenter"))
33-
{
34-
return;
35-
}
36-
37-
// Work around for https://github.com/dotnet/roslyn/issues/42982
38-
if (exception is NullReferenceException &&
39-
exception.StackTrace.Contains("Microsoft.CodeAnalysis.Completion.Providers.AbstractEmbeddedLanguageCompletionProvider.GetLanguageProviders"))
40-
{
41-
return;
42-
}
43-
44-
// Work around for https://devdiv.visualstudio.com/DevDiv/_workitems/edit/1091056
45-
if (exception is InvalidOperationException &&
46-
exception.StackTrace.Contains("Microsoft.VisualStudio.Language.Intellisense.AsyncCompletion.Implementation.CompletionTelemetryHost"))
47-
{
48-
return;
49-
}
50-
5130
// This exception is unexpected and as such we want the containing test case to
5231
// fail. Unfortuntately throwing an exception here is not going to help because
5332
// the editor is going to catch and swallow it. Store it here and wait for the

src/VisualStudio/IntegrationTest/TestSetup/TestExtensionErrorHandler.cs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,6 @@ public TestExtensionErrorHandler()
2222

2323
public void HandleError(object sender, Exception exception)
2424
{
25-
if (exception.Message == "RemotePartyTerminated" && new System.Diagnostics.StackTrace().ToString().Contains("CodeLens") ||
26-
exception.Message == "Cannot access a disposed object.\r\nObject name: 'CodeLensHubClient'.")
27-
{
28-
return;
29-
}
30-
3125
FatalError.ReportAndPropagate(exception);
3226
TestTraceListener.Instance.AddException(exception);
3327
}

0 commit comments

Comments
 (0)