We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6427db5 commit eba54ccCopy full SHA for eba54cc
test/PowerShellEditorServices.Test.E2E/LSPTestsFixures.cs
@@ -1,4 +1,5 @@
1
-using System.Collections.Generic;
+using System;
2
+using System.Collections.Generic;
3
using System.IO;
4
using System.Linq;
5
using System.Threading.Tasks;
@@ -48,9 +49,16 @@ public async override Task CustomInitializeAsync(
48
49
50
public override async Task DisposeAsync()
51
{
- await LanguageClient.Shutdown();
52
- await _psesProcess.Stop();
53
- LanguageClient?.Dispose();
+ try
+ {
54
+ await LanguageClient.Shutdown();
55
+ await _psesProcess.Stop();
56
+ LanguageClient?.Dispose();
57
+ }
58
+ catch (ObjectDisposedException)
59
60
+ // Language client has a disposal bug in it
61
62
}
63
64
0 commit comments