-
Notifications
You must be signed in to change notification settings - Fork 510
Comment-Based Help after function name indents improperly on "Format Document" #3926
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
Isn't comment-based help supposed to go above the function, not in the function definition? Anyway, this looks like a PSSA issue, can you repro it using PSSA directly to format? |
Hopefully fixed now. |
3 locations are supported, with "below the function keyword" being the conventional default (this differs from the C#/Typescript XMLDoc/JSDoc norm of above the function declaration) |
Ah, good to know! I'm not sure why this would be fixed by the last PR, just that it seemed so during a triage meeting. I'll try to repro and test. |
@andschwa FYI still happening in v2022.4.2 |
Thought it would, sorry! Huge blocker? |
Not for stable RC, minor annoyance at best, you can always "save without formatting" or just move it above. |
Prerequisites
Summary
Comment block indents during formatting when it shouldn't. Doesn't occur if block is above the function or if the whole block is already indented.
PowerShell Version
Latest
Visual Studio Code Version
Extension Version
ms-vscode.powershell-preview@2022.4.1
Steps to Reproduce
Visuals
Demo.mp4
Logs
No response
The text was updated successfully, but these errors were encountered: