@@ -1030,12 +1030,19 @@ await PsesLanguageClient
1030
1030
} ) ;
1031
1031
}
1032
1032
1033
- [ SkippableFact ]
1033
+ [ Fact ]
1034
1034
public async Task CanSendCompletionAndCompletionResolveRequestAsync ( )
1035
1035
{
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" ) ;
1039
1046
1040
1047
CompletionList completionItems = await PsesLanguageClient . TextDocument . RequestCompletion (
1041
1048
new CompletionParams
@@ -1054,18 +1061,18 @@ public async Task CanSendCompletionAndCompletionResolveRequestAsync()
1054
1061
. SendRequest ( "completionItem/resolve" , completionItem )
1055
1062
. Returning < CompletionItem > ( CancellationToken . None ) ;
1056
1063
1057
- Assert . Contains ( "Writes customized output to a host " , updatedCompletionItem . Documentation . String ) ;
1064
+ Assert . Contains ( "Gets the current date and time. " , updatedCompletionItem . Documentation . String ) ;
1058
1065
}
1059
1066
1060
- [ SkippableFact ]
1067
+ [ Fact ]
1061
1068
public async Task CanSendCompletionResolveWithModulePrefixRequestAsync ( )
1062
1069
{
1063
1070
await PsesLanguageClient
1064
1071
. SendRequest (
1065
1072
"evaluate" ,
1066
1073
new EvaluateRequestArguments
1067
1074
{
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"
1069
1076
} )
1070
1077
. ReturningVoid ( CancellationToken . None ) ;
1071
1078
0 commit comments