-
Notifications
You must be signed in to change notification settings - Fork 375
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
codeFormatting.IgnoreOneLineBlock / hashtable problem #1284
Comments
Thanks for the detailed report. if ($test -eq $null) { $test = @{ } }
Running UPDATE: I have a found a fix, will open a PR in the next days. Here is a preview of it. |
Code formatting does not behave properly when declaring a hashtable in a IF condition.
Steps to reproduce
Set your codeFormatting options in vscode to:
Write the following statement
Expected behavior
This is actually what happens when $test is an array and what you should expect from an hashtable assignment.
Actual behavior
This is what actually happens with hashtables.
Environment data
The text was updated successfully, but these errors were encountered: