@@ -1057,8 +1057,6 @@ public async Task CanSendCompletionAndCompletionResolveRequestAsync()
1057
1057
Assert . Contains ( "Writes customized output to a host" , updatedCompletionItem . Documentation . String ) ;
1058
1058
}
1059
1059
1060
-
1061
- // [SkippableFact(Skip = "Completion for Expand-SlowArchive is flaky.")]
1062
1060
[ Fact ]
1063
1061
public async Task CanSendCompletionResolveWithModulePrefixRequestAsync ( )
1064
1062
{
@@ -1067,11 +1065,11 @@ await PsesLanguageClient
1067
1065
"evaluate" ,
1068
1066
new EvaluateRequestArguments
1069
1067
{
1070
- Expression = "Import-Module Microsoft.PowerShell.Archive -Prefix Slow "
1068
+ Expression = "Import-Module Microsoft.PowerShell.Utility -Prefix Test "
1071
1069
} )
1072
1070
. ReturningVoid ( CancellationToken . None ) ;
1073
1071
1074
- string filePath = NewTestFile ( "Expand-SlowArch " ) ;
1072
+ string filePath = NewTestFile ( "Get-TestDate " ) ;
1075
1073
1076
1074
CompletionList completionItems = await PsesLanguageClient . TextDocument . RequestCompletion (
1077
1075
new CompletionParams
@@ -1080,15 +1078,15 @@ await PsesLanguageClient
1080
1078
{
1081
1079
Uri = DocumentUri . FromFileSystemPath ( filePath )
1082
1080
} ,
1083
- Position = new Position ( line : 0 , character : 15 )
1081
+ Position = new Position ( line : 0 , character : 12 )
1084
1082
} ) ;
1085
1083
1086
1084
CompletionItem completionItem = Assert . Single ( completionItems ,
1087
- completionItem1 => completionItem1 . Label == "Expand-SlowArchive " ) ;
1085
+ completionItem1 => completionItem1 . Label == "Get-TestDate " ) ;
1088
1086
1089
1087
CompletionItem updatedCompletionItem = await PsesLanguageClient . ResolveCompletion ( completionItem ) ;
1090
1088
1091
- Assert . Contains ( "Extracts files from a specified archive " , updatedCompletionItem . Documentation . String ) ;
1089
+ Assert . Contains ( "Gets the current date and time. " , updatedCompletionItem . Documentation . String ) ;
1092
1090
}
1093
1091
1094
1092
[ SkippableFact ]
0 commit comments