@@ -1057,44 +1057,6 @@ public async Task CanSendCompletionAndCompletionResolveRequestAsync()
1057
1057
Assert . Contains ( "Writes customized output to a host" , updatedCompletionItem . Documentation . String ) ;
1058
1058
}
1059
1059
1060
- // Regression test for https://github.com/PowerShell/PowerShellEditorServices/issues/1926
1061
- [ SkippableFact ]
1062
- public async Task CanRequestCompletionsAndHandleExceptions ( )
1063
- {
1064
- PowerShellVersion details
1065
- = await PsesLanguageClient
1066
- . SendRequest ( "powerShell/getVersion" , new GetVersionParams ( ) )
1067
- . Returning < PowerShellVersion > ( CancellationToken . None ) ;
1068
-
1069
- Skip . IfNot ( details . Version . StartsWith ( "7.2" ) || details . Version . StartsWith ( "7.3" ) ,
1070
- "This is a bug in PowerShell 7.2 and 7.3, fixed in 7.4" ) ;
1071
-
1072
- string filePath = NewTestFile ( @"
1073
- @() | ForEach-Object {
1074
- if ($false) {
1075
- return
1076
- }
1077
-
1078
- @{key=$}
1079
- }" ) ;
1080
-
1081
- Messages . Clear ( ) ; // On some systems there's a warning message about configuration items too.
1082
- CompletionList completionItems = await PsesLanguageClient . TextDocument . RequestCompletion (
1083
- new CompletionParams
1084
- {
1085
- TextDocument = new TextDocumentIdentifier
1086
- {
1087
- Uri = DocumentUri . FromFileSystemPath ( filePath )
1088
- } ,
1089
- Position = new Position ( line : 6 , character : 11 )
1090
- } ) ;
1091
-
1092
- Assert . Empty ( completionItems ) ;
1093
- Assert . Collection ( Messages ,
1094
- ( message ) => Assert . Contains ( "Error Occurred in TabExpansion2" , message . Message ) ,
1095
- ( message ) => Assert . Contains ( "Exception occurred while running handling completion request" , message . Message ) ) ;
1096
- }
1097
-
1098
1060
[ SkippableFact ( Skip = "Completion for Expand-SlowArchive is flaky." ) ]
1099
1061
public async Task CanSendCompletionResolveWithModulePrefixRequestAsync ( )
1100
1062
{
@@ -1269,9 +1231,12 @@ await PsesLanguageClient
1269
1231
Assert . Equal ( 0 , evaluateResponseBody . VariablesReference ) ;
1270
1232
}
1271
1233
1272
- [ Fact ]
1234
+ [ SkippableFact ]
1273
1235
public async Task CanSendGetCommandRequestAsync ( )
1274
1236
{
1237
+ Skip . If ( Environment . GetEnvironmentVariable ( "TF_BUILD" ) is not null ,
1238
+ "This test is too slow in CI." ) ;
1239
+
1275
1240
List < object > pSCommandMessages =
1276
1241
await PsesLanguageClient
1277
1242
. SendRequest ( "powerShell/getCommand" , new GetCommandParams ( ) )
0 commit comments