-
Notifications
You must be signed in to change notification settings - Fork 511
Add new powershell.codeFormatting settings for new options in PSSA 1.18: WhitespaceInsideBrace and WhitespaceAroundPipe #1668
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
Add new powershell.codeFormatting settings for new options in PSSA 1.18: WhitespaceInsideBrace and WhitespaceAroundPipe #1668
Conversation
… powershell.codeFormatting.WhitespaceAroundPipe
The depending PSSA PR has been merged now (meaning the feature will be in 1.18), so only the release is blocking the PR from merging, can you please start the review @TylerLeonhardt or @rjmholt in the meantime? |
(Taken the merge note out, since we won't release before PSSA does) |
package.json
Outdated
"powershell.codeFormatting.WhitespaceInsideBrace": { | ||
"type": "boolean", | ||
"default": true, | ||
"description": "Adds a space after an opening brace ('}') and before a closing brace ('}')." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You say "opening brace" but then use a closing brace as an example. I think that should be ('{')
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well spotted, thanks. I fixed it
package.json
Outdated
"powershell.codeFormatting.WhitespaceAroundPipe": { | ||
"type": "boolean", | ||
"default": true, | ||
"description": "Adds a space before and after a pipeline ('|')." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should refer to this symbol as it is referred to in the docs "pipeline operator" e.g. "... before and after the pipeline operator ('|').".
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
…18: WhitespaceInsideBrace and WhitespaceAroundPipe (PowerShell#1668) * Add new settings: powershell.codeFormatting.WhitespaceInsideBrace and powershell.codeFormatting.WhitespaceAroundPipe * fix whitespace * Apply suggestions from code review
PR Summary
This PR exposes new settings to use the new PSSA settings from this PR.
The corresponding PR in PSES is here
This PR can only be merged once PSSA 1.18 has released and the dependent PSES has been merged.
PR Checklist
Note: Tick the boxes below that apply to this pull request by putting an
x
between the square brackets.Please mark anything not applicable to this PR
NA
.WIP:
to the beginning of the title and remove the prefix when the PR is ready