Commit f035aed
authored
Fix PSES crash that happens if you format an empty PS doc (#685)
Invoke-Formatter -ScriptDefinition '' - throws a terminating error:
ParameterBinderValidationException.
I suppose we could have added another catch statement to the InvokePowerShell method
in the AnalysisService but in general, we probably want to know about such bugs.
Also, we could also update the extension to not send a format request for an empty doc
but I'm not sure it's worth the additional code change given corner case scenario.
But I could be convinced otherwise.1 parent ec3b976 commit f035aed
1 file changed
+3
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
263 | 263 | | |
264 | 264 | | |
265 | 265 | | |
266 | | - | |
267 | | - | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
268 | 269 | | |
269 | 270 | | |
270 | 271 | | |
| |||
0 commit comments