@@ -154,8 +154,7 @@ function CanSendWorkspaceSymbolRequest {
154154 [ SkippableFact ]
155155 public async Task CanReceiveDiagnosticsFromFileOpenAsync ( )
156156 {
157- Skip . If (
158- PsesStdioProcess . RunningInConstrainedLanguageMode && PsesStdioProcess . IsWindowsPowerShell ,
157+ Skip . If ( PsesStdioProcess . RunningInConstrainedLanguageMode && PsesStdioProcess . IsWindowsPowerShell ,
159158 "Windows PowerShell doesn't trust PSScriptAnalyzer by default so it won't load." ) ;
160159
161160 NewTestFile ( "$a = 4" ) ;
@@ -177,8 +176,7 @@ public async Task WontReceiveDiagnosticsFromFileOpenThatIsNotPowerShellAsync()
177176 [ SkippableFact ]
178177 public async Task CanReceiveDiagnosticsFromFileChangedAsync ( )
179178 {
180- Skip . If (
181- PsesStdioProcess . RunningInConstrainedLanguageMode && PsesStdioProcess . IsWindowsPowerShell ,
179+ Skip . If ( PsesStdioProcess . RunningInConstrainedLanguageMode && PsesStdioProcess . IsWindowsPowerShell ,
182180 "Windows PowerShell doesn't trust PSScriptAnalyzer by default so it won't load." ) ;
183181
184182 string filePath = NewTestFile ( "$a = 4" ) ;
@@ -229,8 +227,7 @@ public async Task CanReceiveDiagnosticsFromFileChangedAsync()
229227 [ SkippableFact ]
230228 public async Task CanReceiveDiagnosticsFromConfigurationChangeAsync ( )
231229 {
232- Skip . If (
233- PsesStdioProcess . RunningInConstrainedLanguageMode && PsesStdioProcess . IsWindowsPowerShell ,
230+ Skip . If ( PsesStdioProcess . RunningInConstrainedLanguageMode && PsesStdioProcess . IsWindowsPowerShell ,
234231 "Windows PowerShell doesn't trust PSScriptAnalyzer by default so it won't load." ) ;
235232
236233 NewTestFile ( "gci | % { $_ }" ) ;
@@ -330,8 +327,7 @@ await PsesLanguageClient
330327 [ SkippableFact ]
331328 public async Task CanSendFormattingRequestAsync ( )
332329 {
333- Skip . If (
334- PsesStdioProcess . RunningInConstrainedLanguageMode && PsesStdioProcess . IsWindowsPowerShell ,
330+ Skip . If ( PsesStdioProcess . RunningInConstrainedLanguageMode && PsesStdioProcess . IsWindowsPowerShell ,
335331 "Windows PowerShell doesn't trust PSScriptAnalyzer by default so it won't load." ) ;
336332
337333 string scriptPath = NewTestFile ( @"
@@ -367,8 +363,7 @@ public async Task CanSendFormattingRequestAsync()
367363 [ SkippableFact ]
368364 public async Task CanSendRangeFormattingRequestAsync ( )
369365 {
370- Skip . If (
371- PsesStdioProcess . RunningInConstrainedLanguageMode && PsesStdioProcess . IsWindowsPowerShell ,
366+ Skip . If ( PsesStdioProcess . RunningInConstrainedLanguageMode && PsesStdioProcess . IsWindowsPowerShell ,
372367 "Windows PowerShell doesn't trust PSScriptAnalyzer by default so it won't load." ) ;
373368
374369 string scriptPath = NewTestFile ( @"
@@ -891,8 +886,7 @@ function CanSendReferencesCodeLensRequest {
891886 [ SkippableFact ]
892887 public async Task CanSendCodeActionRequestAsync ( )
893888 {
894- Skip . If (
895- PsesStdioProcess . RunningInConstrainedLanguageMode && PsesStdioProcess . IsWindowsPowerShell ,
889+ Skip . If ( PsesStdioProcess . RunningInConstrainedLanguageMode && PsesStdioProcess . IsWindowsPowerShell ,
896890 "Windows PowerShell doesn't trust PSScriptAnalyzer by default so it won't load." ) ;
897891
898892 string filePath = NewTestFile ( "gci" ) ;
@@ -971,7 +965,7 @@ public async Task CanSendCompletionAndCompletionResolveRequestAsync()
971965 Assert . Contains ( "Writes customized output to a host" , updatedCompletionItem . Documentation . String ) ;
972966 }
973967
974- [ SkippableFact ( Skip = "This test is too flaky right now ." ) ]
968+ [ SkippableFact ( Skip = "Completion for Expand-SlowArchive is flaky." ) ]
975969 public async Task CanSendCompletionResolveWithModulePrefixRequestAsync ( )
976970 {
977971 await PsesLanguageClient
@@ -1090,7 +1084,8 @@ await PsesLanguageClient
10901084 [ SkippableFact ]
10911085 public async Task CanSendGetProjectTemplatesRequestAsync ( )
10921086 {
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." ) ;
10941089
10951090 GetProjectTemplatesResponse getProjectTemplatesResponse =
10961091 await PsesLanguageClient
@@ -1109,8 +1104,7 @@ await PsesLanguageClient
11091104 [ SkippableFact ]
11101105 public async Task CanSendGetCommentHelpRequestAsync ( )
11111106 {
1112- Skip . If (
1113- PsesStdioProcess . RunningInConstrainedLanguageMode && PsesStdioProcess . IsWindowsPowerShell ,
1107+ Skip . If ( PsesStdioProcess . RunningInConstrainedLanguageMode && PsesStdioProcess . IsWindowsPowerShell ,
11141108 "Windows PowerShell doesn't trust PSScriptAnalyzer by default so it won't load." ) ;
11151109
11161110 string scriptPath = NewTestFile ( @"
@@ -1180,9 +1174,8 @@ await PsesLanguageClient
11801174 [ SkippableFact ]
11811175 public async Task CanSendExpandAliasRequestAsync ( )
11821176 {
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." ) ;
11861179
11871180 ExpandAliasResult expandAliasResult =
11881181 await PsesLanguageClient
0 commit comments