@@ -154,8 +154,7 @@ function CanSendWorkspaceSymbolRequest {
154
154
[ SkippableFact ]
155
155
public async Task CanReceiveDiagnosticsFromFileOpenAsync ( )
156
156
{
157
- Skip . If (
158
- PsesStdioProcess . RunningInConstrainedLanguageMode && PsesStdioProcess . IsWindowsPowerShell ,
157
+ Skip . If ( PsesStdioProcess . RunningInConstrainedLanguageMode && PsesStdioProcess . IsWindowsPowerShell ,
159
158
"Windows PowerShell doesn't trust PSScriptAnalyzer by default so it won't load." ) ;
160
159
161
160
NewTestFile ( "$a = 4" ) ;
@@ -177,8 +176,7 @@ public async Task WontReceiveDiagnosticsFromFileOpenThatIsNotPowerShellAsync()
177
176
[ SkippableFact ]
178
177
public async Task CanReceiveDiagnosticsFromFileChangedAsync ( )
179
178
{
180
- Skip . If (
181
- PsesStdioProcess . RunningInConstrainedLanguageMode && PsesStdioProcess . IsWindowsPowerShell ,
179
+ Skip . If ( PsesStdioProcess . RunningInConstrainedLanguageMode && PsesStdioProcess . IsWindowsPowerShell ,
182
180
"Windows PowerShell doesn't trust PSScriptAnalyzer by default so it won't load." ) ;
183
181
184
182
string filePath = NewTestFile ( "$a = 4" ) ;
@@ -229,8 +227,7 @@ public async Task CanReceiveDiagnosticsFromFileChangedAsync()
229
227
[ SkippableFact ]
230
228
public async Task CanReceiveDiagnosticsFromConfigurationChangeAsync ( )
231
229
{
232
- Skip . If (
233
- PsesStdioProcess . RunningInConstrainedLanguageMode && PsesStdioProcess . IsWindowsPowerShell ,
230
+ Skip . If ( PsesStdioProcess . RunningInConstrainedLanguageMode && PsesStdioProcess . IsWindowsPowerShell ,
234
231
"Windows PowerShell doesn't trust PSScriptAnalyzer by default so it won't load." ) ;
235
232
236
233
NewTestFile ( "gci | % { $_ }" ) ;
@@ -330,8 +327,7 @@ await PsesLanguageClient
330
327
[ SkippableFact ]
331
328
public async Task CanSendFormattingRequestAsync ( )
332
329
{
333
- Skip . If (
334
- PsesStdioProcess . RunningInConstrainedLanguageMode && PsesStdioProcess . IsWindowsPowerShell ,
330
+ Skip . If ( PsesStdioProcess . RunningInConstrainedLanguageMode && PsesStdioProcess . IsWindowsPowerShell ,
335
331
"Windows PowerShell doesn't trust PSScriptAnalyzer by default so it won't load." ) ;
336
332
337
333
string scriptPath = NewTestFile ( @"
@@ -367,8 +363,7 @@ public async Task CanSendFormattingRequestAsync()
367
363
[ SkippableFact ]
368
364
public async Task CanSendRangeFormattingRequestAsync ( )
369
365
{
370
- Skip . If (
371
- PsesStdioProcess . RunningInConstrainedLanguageMode && PsesStdioProcess . IsWindowsPowerShell ,
366
+ Skip . If ( PsesStdioProcess . RunningInConstrainedLanguageMode && PsesStdioProcess . IsWindowsPowerShell ,
372
367
"Windows PowerShell doesn't trust PSScriptAnalyzer by default so it won't load." ) ;
373
368
374
369
string scriptPath = NewTestFile ( @"
@@ -891,8 +886,7 @@ function CanSendReferencesCodeLensRequest {
891
886
[ SkippableFact ]
892
887
public async Task CanSendCodeActionRequestAsync ( )
893
888
{
894
- Skip . If (
895
- PsesStdioProcess . RunningInConstrainedLanguageMode && PsesStdioProcess . IsWindowsPowerShell ,
889
+ Skip . If ( PsesStdioProcess . RunningInConstrainedLanguageMode && PsesStdioProcess . IsWindowsPowerShell ,
896
890
"Windows PowerShell doesn't trust PSScriptAnalyzer by default so it won't load." ) ;
897
891
898
892
string filePath = NewTestFile ( "gci" ) ;
@@ -971,7 +965,7 @@ public async Task CanSendCompletionAndCompletionResolveRequestAsync()
971
965
Assert . Contains ( "Writes customized output to a host" , updatedCompletionItem . Documentation . String ) ;
972
966
}
973
967
974
- [ SkippableFact ( Skip = "This test is too flaky right now ." ) ]
968
+ [ SkippableFact ( Skip = "Completion for Expand-SlowArchive is flaky." ) ]
975
969
public async Task CanSendCompletionResolveWithModulePrefixRequestAsync ( )
976
970
{
977
971
await PsesLanguageClient
@@ -1090,7 +1084,8 @@ await PsesLanguageClient
1090
1084
[ SkippableFact ]
1091
1085
public async Task CanSendGetProjectTemplatesRequestAsync ( )
1092
1086
{
1093
- Skip . If ( PsesStdioProcess . RunningInConstrainedLanguageMode , "Plaster doesn't work in ConstrainedLanguage mode." ) ;
1087
+ Skip . If ( PsesStdioProcess . RunningInConstrainedLanguageMode ,
1088
+ "Plaster doesn't work in Constrained Language Mode." ) ;
1094
1089
1095
1090
GetProjectTemplatesResponse getProjectTemplatesResponse =
1096
1091
await PsesLanguageClient
@@ -1109,8 +1104,7 @@ await PsesLanguageClient
1109
1104
[ SkippableFact ]
1110
1105
public async Task CanSendGetCommentHelpRequestAsync ( )
1111
1106
{
1112
- Skip . If (
1113
- PsesStdioProcess . RunningInConstrainedLanguageMode && PsesStdioProcess . IsWindowsPowerShell ,
1107
+ Skip . If ( PsesStdioProcess . RunningInConstrainedLanguageMode && PsesStdioProcess . IsWindowsPowerShell ,
1114
1108
"Windows PowerShell doesn't trust PSScriptAnalyzer by default so it won't load." ) ;
1115
1109
1116
1110
string scriptPath = NewTestFile ( @"
@@ -1180,9 +1174,8 @@ await PsesLanguageClient
1180
1174
[ SkippableFact ]
1181
1175
public async Task CanSendExpandAliasRequestAsync ( )
1182
1176
{
1183
- Skip . If (
1184
- PsesStdioProcess . RunningInConstrainedLanguageMode ,
1185
- "This feature currently doesn't support ConstrainedLanguage Mode." ) ;
1177
+ Skip . If ( PsesStdioProcess . RunningInConstrainedLanguageMode ,
1178
+ "The expand alias request doesn't work in Constrained Language Mode." ) ;
1186
1179
1187
1180
ExpandAliasResult expandAliasResult =
1188
1181
await PsesLanguageClient
0 commit comments