9
9
using System . IO ;
10
10
using System . Linq ;
11
11
using System . Reflection ;
12
+ using System . Runtime . InteropServices ;
12
13
using System . Text ;
13
14
using System . Threading ;
14
15
using System . Threading . Tasks ;
@@ -31,6 +32,9 @@ namespace PowerShellEditorServices.Test.E2E
31
32
{
32
33
public class LanguageServerProtocolMessageTests : IClassFixture < LSPTestsFixture > , IDisposable
33
34
{
35
+ // Borrowed from `VersionUtils` which can't be used here due to an initialization problem.
36
+ private static bool IsLinux { get ; } = RuntimeInformation . IsOSPlatform ( OSPlatform . Linux ) ;
37
+
34
38
private readonly static string s_binDir =
35
39
Path . GetDirectoryName ( Assembly . GetExecutingAssembly ( ) . Location ) ;
36
40
@@ -924,9 +928,10 @@ await PsesLanguageClient
924
928
}
925
929
926
930
[ Trait ( "Category" , "LSP" ) ]
927
- [ Fact ]
931
+ [ SkippableFact ]
928
932
public async Task CanSendCompletionAndCompletionResolveRequestAsync ( )
929
933
{
934
+ Skip . If ( IsLinux , "This depends on the help system, which is flaky on Linux." ) ;
930
935
string filePath = NewTestFile ( "Write-H" ) ;
931
936
932
937
CompletionList completionItems = await PsesLanguageClient . TextDocument . RequestCompletion (
@@ -950,9 +955,10 @@ public async Task CanSendCompletionAndCompletionResolveRequestAsync()
950
955
}
951
956
952
957
[ Trait ( "Category" , "LSP" ) ]
953
- [ Fact ]
958
+ [ SkippableFact ]
954
959
public async Task CanSendCompletionResolveWithModulePrefixRequestAsync ( )
955
960
{
961
+ Skip . If ( IsLinux , "This depends on the help system, which is flaky on Linux." ) ;
956
962
await PsesLanguageClient
957
963
. SendRequest < EvaluateRequestArguments > (
958
964
"evaluate" ,
@@ -985,9 +991,10 @@ await PsesLanguageClient
985
991
}
986
992
987
993
[ Trait ( "Category" , "LSP" ) ]
988
- [ Fact ]
994
+ [ SkippableFact ]
989
995
public async Task CanSendHoverRequestAsync ( )
990
996
{
997
+ Skip . If ( IsLinux , "This depends on the help system, which is flaky on Linux." ) ;
991
998
string filePath = NewTestFile ( "Write-Host" ) ;
992
999
993
1000
Hover hover = await PsesLanguageClient . TextDocument . RequestHover (
0 commit comments