You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This just started happening in the latest Code Insiders 7/27
Sample Code
if ($ModuleResults)
{
if ($ModuleResults.Installed-ne$null)
{
Write-Host"[INFO] "-ForegroundColor DarkMagenta -NoNewline
Write-Host"Installed Modules: "-NoNewLine -ForegroundColor Gray
Write-Host"$($ModuleResults.Installed-join', ')"-ForegroundColor DarkGray
}
if ($ModuleResults.Updated-ne$null)
{
Write-Host"[INFO] "-ForegroundColor DarkMagenta -NoNewline
Write-Host"Updated Modules: "-NoNewLine -ForegroundColor Gray
Write-Host"$($ModuleResults.Updated-join', ')"-ForegroundColor DarkGray
}
if ($ModuleResults.FailedUpdate-ne$null)
{
Write-Host"[Error] "-ForegroundColor Red -NoNewline
Write-Host"Module Update Failed: "-NoNewLine -ForegroundColor Gray
Write-Host"$($ModuleResults.FailedUpdate-join', ')"-ForegroundColor DarkGray
}
if ($ModuleResults.FailedInstall-ne$null)
{
Write-Host"[ERROR] "-ForegroundColor Red -NoNewline
Write-Host"Module Install Failed: "-NoNewLine -ForegroundColor Gray
Write-Host"$($ModuleResults.FailedInstall-join', ')"-ForegroundColor DarkGray
}
}
Here is how it looks by default
If I remove the dot in $ModuleResults.Installed it clears up.
If I remove the comma inside of the quotes, you can see that it clears up the rest of the syntax outside of the double quotes, but the -join ' ' is still wrong.
Removing the double quotes still has all following syntax broken.
The text was updated successfully, but these errors were encountered:
This just started happening in the latest Code Insiders 7/27
Sample Code
Here is how it looks by default
If I remove the dot in
$ModuleResults.Installed
it clears up.If I remove the comma inside of the quotes, you can see that it clears up the rest of the syntax outside of the double quotes, but the
-join ' '
is still wrong.Removing the double quotes still has all following syntax broken.
The text was updated successfully, but these errors were encountered: