@@ -1030,12 +1030,19 @@ await PsesLanguageClient
10301030 } ) ;
10311031 }
10321032
1033- [ SkippableFact ]
1033+ [ Fact ]
10341034 public async Task CanSendCompletionAndCompletionResolveRequestAsync ( )
10351035 {
1036- Skip . If ( IsLinux , "This depends on the help system, which is flaky on Linux." ) ;
1037- Skip . If ( PsesStdioLanguageServerProcessHost . IsWindowsPowerShell , "This help system isn't updated in CI." ) ;
1038- string filePath = NewTestFile ( "Write-H" ) ;
1036+ await PsesLanguageClient
1037+ . SendRequest (
1038+ "evaluate" ,
1039+ new EvaluateRequestArguments
1040+ {
1041+ Expression = "Update-Help Microsoft.Powershell.Utility;"
1042+ } )
1043+ . ReturningVoid ( CancellationToken . None ) ;
1044+
1045+ string filePath = NewTestFile ( "Get-Date" ) ;
10391046
10401047 CompletionList completionItems = await PsesLanguageClient . TextDocument . RequestCompletion (
10411048 new CompletionParams
@@ -1054,18 +1061,18 @@ public async Task CanSendCompletionAndCompletionResolveRequestAsync()
10541061 . SendRequest ( "completionItem/resolve" , completionItem )
10551062 . Returning < CompletionItem > ( CancellationToken . None ) ;
10561063
1057- Assert . Contains ( "Writes customized output to a host " , updatedCompletionItem . Documentation . String ) ;
1064+ Assert . Contains ( "Gets the current date and time. " , updatedCompletionItem . Documentation . String ) ;
10581065 }
10591066
1060- [ SkippableFact ]
1067+ [ Fact ]
10611068 public async Task CanSendCompletionResolveWithModulePrefixRequestAsync ( )
10621069 {
10631070 await PsesLanguageClient
10641071 . SendRequest (
10651072 "evaluate" ,
10661073 new EvaluateRequestArguments
10671074 {
1068- Expression = "Update-Help Microsoft.Powershell.Utility -Force ;Import-Module Microsoft.PowerShell.Utility -Prefix Test -Force"
1075+ Expression = "Update-Help Microsoft.Powershell.Utility;Import-Module Microsoft.PowerShell.Utility -Prefix Test -Force"
10691076 } )
10701077 . ReturningVoid ( CancellationToken . None ) ;
10711078
0 commit comments