-
Notifications
You must be signed in to change notification settings - Fork 520
Closed
Labels
Issue-BugA bug to squash.A bug to squash.Needs: Author FeedbackPlease give us the requested feedback!Please give us the requested feedback!
Description
Prerequisites
- I have written a descriptive issue title.
- I have searched all open and closed issues to ensure it has not already been reported.
- I have read the troubleshooting guide.
- I am sure this issue is with the extension itself and does not reproduce in a standalone PowerShell instance.
- I have verified that I am using the latest version of Visual Studio Code and the PowerShell extension.
- If this is a security issue, I have read the security issue reporting guidance.
Summary
The setting in question says:
IncreaseIndentationAfterEveryPipeline: Indent more after the first pipeline and keep this indentation. Example:
foo | bar | baz
That does not happen.
Instead, I get
foo |
bar |
baz
PowerShell Version
PSVersionTable : The term 'PSVersionTable' is not recognized as the name of a cmdlet, function, script file, or
operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try
again.
At line:1 char:1
+ PSVersionTable; $Host
+ ~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (PSVersionTable:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
Name : ConsoleHost
Version : 5.1.22621.4111
InstanceId : 6fce9dd9-a19f-404e-9d8b-b724ba96b14c
UI : System.Management.Automation.Internal.Host.InternalHostUserInterface
CurrentCulture : en-US
CurrentUICulture : en-US
PrivateData : Microsoft.PowerShell.ConsoleHost+ConsoleColorProxy
DebuggerEnabled : True
IsRunspacePushed : False
Runspace : System.Management.Automation.Runspaces.LocalRunspace
Visual Studio Code Version
1.92.2
fee1edb8d6d72a0ddff41e5f71a671c23ed924b9
x64
Extension Version
ms-vscode.powershell@2024.2.2
Steps to Reproduce
Add "powershell.codeFormatting.pipelineIndentationStyle": "IncreaseIndentationAfterEveryPipeline",
to settings.json.
Visuals
PowerShell.formatter.pipelineIndentationStyle.mp4
Logs
No response
Metadata
Metadata
Assignees
Labels
Issue-BugA bug to squash.A bug to squash.Needs: Author FeedbackPlease give us the requested feedback!Please give us the requested feedback!