-
Notifications
You must be signed in to change notification settings - Fork 395
Format Document inserts spaces between curly braces after point operator #1741
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
Comments
Formatting is done via PSScriptAnalyzer, transferring issue... |
Adding this to my list to triage and fix this week. |
Thanks @bergmeister! My personal triage priority is any bug with destructive behavior (which has recently had some activity in the repo, but I can't find it right now). |
No worries and I agree. The other one that you probably think of, which is on my list as well is #1580 |
While this does look like a bug I'm not sure using braces like this is actually what you want. AFAIK when you do a property accesor it will cast the value to a string so |
Put it through the debugger, the |
Prerequisites
Summary
I have the following line:
Add-Member -InputObject $computer -MemberType NoteProperty -Name LIRoom -Value $gld.{Custom.Büro}
After Format Document it looks:
Add-Member -InputObject $computer -MemberType NoteProperty -Name LIRoom -Value $gld. { Custom.Büro }
which is syntactically false.
PowerShell Version
Visual Studio Code Version
Extension Version
[email protected]
Steps to Reproduce
see above
Visuals
No response
Logs
No response
The text was updated successfully, but these errors were encountered: