René's URL Explorer Experiment


Title: Incorrect Multi-line Pipeline Indentation when inside a Scriptblock that also has a Pipeline · Issue #1680 · PowerShell/PSScriptAnalyzer · GitHub

Open Graph Title: Incorrect Multi-line Pipeline Indentation when inside a Scriptblock that also has a Pipeline · Issue #1680 · PowerShell/PSScriptAnalyzer

X Title: Incorrect Multi-line Pipeline Indentation when inside a Scriptblock that also has a Pipeline · Issue #1680 · PowerShell/PSScriptAnalyzer

Description: System Details Manjaro Linux: ### VSCode version: 1.56.2 054a9295330880ed74ceaedda236253b4f39a335 x64 ### VSCode extensions: aaron-bond.better-comments@2.1.0 eamodio.gitlens@11.4.1 GitHub.vscode-pull-request-github@0.26.0 ms-dotnettools....

Open Graph Description: System Details Manjaro Linux: ### VSCode version: 1.56.2 054a9295330880ed74ceaedda236253b4f39a335 x64 ### VSCode extensions: aaron-bond.better-comments@2.1.0 eamodio.gitlens@11.4.1 GitHub.vscode-pu...

X Description: System Details Manjaro Linux: ### VSCode version: 1.56.2 054a9295330880ed74ceaedda236253b4f39a335 x64 ### VSCode extensions: aaron-bond.better-comments@2.1.0 eamodio.gitlens@11.4.1 GitHub.vscode-pu...

Opengraph URL: https://github.com/PowerShell/PSScriptAnalyzer/issues/1680

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Incorrect Multi-line Pipeline Indentation when inside a Scriptblock that also has a Pipeline","articleBody":"\u003c!--\r\n\r\nBEFORE SUBMITTING A NEW ISSUE, PLEASE READ THE TROUBLESHOOTING DOCS!\r\nhttps://github.com/PowerShell/vscode-powershell/tree/master/docs/troubleshooting.md\r\n\r\nIMPORTANT: you can generate a bug report directly from the\r\nPowerShell extension in Visual Studio Code by selecting\r\n\"PowerShell: Upload Bug Report to GitHub\" from the command palette.\r\n\r\nNOTE: If you have both stable (aka \"PowerShell\") and preview (aka \"PowerShell Preview\") installed,\r\nyou MUST DISABLE one of them for the best performance.\r\nDocs on how to disable an extension can be found here:\r\nhttps://code.visualstudio.com/docs/editor/extension-gallery#_disable-an-extension\r\n\r\nThe more repro details you can provide, along with a zip\r\nof the log files from your session, the better the chances\r\nare for a quick resolution.\r\n\r\nYou may also want to record a GIF of the bug occurring and\r\nattach it here by dropping the file into the description body.\r\n\r\n-->\r\n\r\n### System Details\r\n\r\n\u003c!--\r\nTo help diagnose your issue, the following details are helpful:\r\n- Operating system name and version\r\n- VS Code version\r\n- PowerShell extension version\r\n- Output from `$PSVersionTable`\r\n\r\nTo get this information, run the following expression in your Integrated Console and paste the output here inside the backticks below:\r\n\r\n& {\"### VSCode version: $(code -v)\"; \"`n### VSCode extensions:`n$(code --list-extensions --show-versions | Out-String)\"; \"`n### PSES version: $($pseditor.EditorServicesVersion)\"; \"`n### PowerShell version:`n$($PSVersionTable | Out-String)\"}\r\n\r\n\r\nIf you are running VSCode Insiders, use this expression instead (and paste the result inside the backticks):\r\n\r\n& {\"### VSCode version: $(code-insiders -v)\"; \"`n### VSCode extensions:`n$(code-insiders --list-extensions --show-versions | Out-String)\"; \"`n### PSES version: $($pseditor.EditorServicesVersion)\"; \"`n### PowerShell version:`n$($PSVersionTable | Out-String)\"}\r\n\r\n-->\r\n\r\n\u003c!-- PowerShell output from above goes here -->\r\n**Manjaro Linux:**\r\n``` \r\n### VSCode version: 1.56.2 054a9295330880ed74ceaedda236253b4f39a335 x64\r\n\r\n### VSCode extensions:\r\naaron-bond.better-comments@2.1.0\r\neamodio.gitlens@11.4.1\r\nGitHub.vscode-pull-request-github@0.26.0\r\nms-dotnettools.csharp@1.23.11\r\nms-vscode.mono-debug@0.16.2\r\nms-vscode.powershell@2021.2.2\r\n\r\n\r\n### PSES version: 2.3.0.0\r\n\r\n### PowerShell version:\r\n\r\nName                           Value\r\n----                           -----\r\nPSVersion                      7.1.3\r\nPSEdition                      Core\r\nGitCommitId                    7.1.3\r\nOS                             Linux 5.12.2-1-MANJARO PowerShell/vscode-powershell#1 SMP PREEMPT Fri May 7 17:53:15 UTC 2021\r\nPlatform                       Unix\r\nPSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}\r\nPSRemotingProtocolVersion      2.3\r\nSerializationVersion           1.1.0.1\r\nWSManStackVersion              3.0\r\n```\r\n**Windows 10 Enterprise:**\r\n```\r\n### VSCode version: 1.56.2 054a9295330880ed74ceaedda236253b4f39a335 x64\r\n\r\n### VSCode extensions:\r\naaron-bond.better-comments@2.1.0        \r\nCoenraadS.bracket-pair-colorizer-2@0.2.0\r\neamodio.gitlens@11.4.1\r\nGitHub.vscode-pull-request-github@0.26.0\r\nLudwig.wordcounter@0.0.1\r\nms-vscode-remote.remote-wsl@0.56.2      \r\nms-vscode.powershell@2021.2.2\r\nms-vscode.powershell-preview@2021.4.2\r\nshd101wyy.markdown-preview-enhanced@0.5.18\r\ntht13.html-preview-vscode@0.2.5\r\nuctakeoff.vscode-counter@2.2.2\r\n\r\n\r\n### PSES version: 2.4.1.0\r\n\r\n### PowerShell version:\r\n\r\nName                           Value\r\n----                           -----\r\nPSVersion                      5.1.19041.906\r\nPSEdition                      Desktop\r\nPSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}\r\nBuildVersion                   10.0.19041.906\r\nCLRVersion                     4.0.30319.42000\r\nWSManStackVersion              3.0\r\nPSRemotingProtocolVersion      2.3\r\nSerializationVersion           1.1.0.1\r\n```\r\n\r\n### Issue Description\r\n\r\nWhen using `IncreaseIndentationForFirstPipeline` or `IncreaseIndentationAfterEveryPipeline` as multiline pipeline indentation style the code is formatted inproperly when inside a Scriptblock which also has pipeline indents.\r\nExamples are with `IncreaseIndentationForFirstPipeline` and show some Pseudo-Powershell.\r\n\r\n#### Expected Behaviour\r\n```powershell\r\n\r\n# if OTBS and IncreaseIndentationForFirstPipeline is selected this code won't be reformatted as it is already \"correct\"\r\n\r\n$Test = $SomeValues | \r\n    Select-Object Some, Values | \r\n    Sort-Object -Property Values\r\n\r\nif ($Test) {\r\n    #Do stuff with test\r\n}\r\n\r\n# this should also be considered correct and not getting reformated \r\nTest-Scriptblock -Scriptblock {\r\n    $Test = $SomeValues | \r\n        Select-Object Some, Values | \r\n        Sort-Object -Property Values\r\n    \r\n    if ($Test) {\r\n        #Do stuff with test\r\n    }\r\n} -PassThru | \r\n    Run-Scriptblock\r\n```\r\n\r\n#### Actual Behaviour\r\n\r\n```powershell\r\n\r\n# as expected nothing was reformatted \r\n\r\n$Test = $SomeValues | \r\n    Select-Object Some, Values | \r\n    Sort-Object -Property Values\r\n\r\nif ($Test) {\r\n    #Do stuff with test\r\n}\r\n\r\n# but here the indentiation does not stop at sort-object (..) but rather indents everything that follows too \r\nTest-Scriptblock -Scriptblock {\r\n    $Test = $SomeValues | \r\n        Select-Object Some, Values | \r\n        Sort-Object -Property Values\r\n    \r\n        if ($Test) {\r\n            #Do stuff with test\r\n        }\r\n    } -PassThru | \r\n        Run-Scriptblock\r\n\r\n# with IncreaseIndentationAfterEveryPipeline the same incorrect indentation will be applied \r\nTest-Scriptblock -Scriptblock {\r\n    $Test = $SomeValues | \r\n        Select-Object Some, Values | \r\n            Sort-Object -Property Values\r\n    \r\n            if ($Test) {\r\n                #Do stuff with test\r\n            }\r\n        } -PassThru | \r\n            Run-Scriptblock\r\n```\r\n### Attached Logs\r\n - No logs to attach - ","author":{"url":"https://github.com/ArchitektApx","@type":"Person","name":"ArchitektApx"},"datePublished":"2021-05-16T10:36:36Z","url":"https://github.com/PowerShell/PSScriptAnalyzer/issues/1680"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:19be6a65-b6d4-392c-3121-43a7b5bda2ee
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id85B6:C35DD:150CB34:1DA20D6:6AFCE67D
html-safe-nonce1b00b871677b3712f47b38154659450f5b5331a0b6d441f6972a957029e9db14
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NUI2OkMzNUREOjE1MENCMzQ6MURBMjBENjo2QUZDRTY3RCIsInZpc2l0b3JfaWQiOiI0MTAwNjc0NTk1MjEwNDU0NjUzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacebb413292c037d240b786cee1e684f4f232d6d360261d85d87b4f1e41c858240
hovercard-subject-tagissue:894760625
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/PowerShell/PSScriptAnalyzer/1680/issue_layout
twitter:imagehttps://opengraph.githubassets.com/b0219902e82f43d045e66c0518209b6c49bf1a4922399786a96e08f883002328/PowerShell/PSScriptAnalyzer/issues/1680
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/b0219902e82f43d045e66c0518209b6c49bf1a4922399786a96e08f883002328/PowerShell/PSScriptAnalyzer/issues/1680
og:image:altSystem Details Manjaro Linux: ### VSCode version: 1.56.2 054a9295330880ed74ceaedda236253b4f39a335 x64 ### VSCode extensions: aaron-bond.better-comments@2.1.0 eamodio.gitlens@11.4.1 GitHub.vscode-pu...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameArchitektApx
hostnamegithub.com
expected-hostnamegithub.com
None99aede4c5f55ec5cf06666a8c9e03ebf9f85f7231223e7f1c38c16e5504835b3
turbo-cache-controlno-preview
go-importgithub.com/PowerShell/PSScriptAnalyzer git https://github.com/PowerShell/PSScriptAnalyzer.git
octolytics-dimension-user_id11524380
octolytics-dimension-user_loginPowerShell
octolytics-dimension-repository_id33149177
octolytics-dimension-repository_nwoPowerShell/PSScriptAnalyzer
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id33149177
octolytics-dimension-repository_network_root_nwoPowerShell/PSScriptAnalyzer
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releaseecfd63ca125ec74b42f74eeb158b3fa081c8c497
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/PowerShell/PSScriptAnalyzer/issues/1680#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FPowerShell%2FPSScriptAnalyzer%2Fissues%2F1680
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FPowerShell%2FPSScriptAnalyzer%2Fissues%2F1680
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=PowerShell%2FPSScriptAnalyzer
Reloadhttps://github.com/PowerShell/PSScriptAnalyzer/issues/1680
Reloadhttps://github.com/PowerShell/PSScriptAnalyzer/issues/1680
Reloadhttps://github.com/PowerShell/PSScriptAnalyzer/issues/1680
PowerShellhttps://github.com/PowerShell
PSScriptAnalyzerhttps://github.com/PowerShell/PSScriptAnalyzer
Codehttps://github.com/PowerShell/PSScriptAnalyzer
Issues407 (407)https://github.com/PowerShell/PSScriptAnalyzer/issues
Pull requests34 (34)https://github.com/PowerShell/PSScriptAnalyzer/pulls
Discussionshttps://github.com/PowerShell/PSScriptAnalyzer/discussions
Actionshttps://github.com/PowerShell/PSScriptAnalyzer/actions
Projectshttps://github.com/PowerShell/PSScriptAnalyzer/projects
Wikihttps://github.com/PowerShell/PSScriptAnalyzer/wiki
Security and qualityhttps://github.com/PowerShell/PSScriptAnalyzer/security
Insightshttps://github.com/PowerShell/PSScriptAnalyzer/insights
https://github.com/PowerShell/PSScriptAnalyzer
New issuehttps://github.com/login?return_to=https://github.com/PowerShell/PSScriptAnalyzer/issues/1680
New issuehttps://github.com/login?return_to=https://github.com/PowerShell/PSScriptAnalyzer/issues/1680
#2173https://github.com/PowerShell/PSScriptAnalyzer/pull/2173
Incorrect Multi-line Pipeline Indentation when inside a Scriptblock that also has a Pipelinehttps://github.com/PowerShell/PSScriptAnalyzer/issues/1680#top
#2173https://github.com/PowerShell/PSScriptAnalyzer/pull/2173
Area - Formatterhttps://github.com/PowerShell/PSScriptAnalyzer/issues?q=state%3Aopen%20label%3A%22Area%20-%20Formatter%22
Issue - Bughttps://github.com/PowerShell/PSScriptAnalyzer/issues?q=state%3Aopen%20label%3A%22Issue%20-%20Bug%22
https://github.com/ArchitektApx
ArchitektApx (ArchitektApx)https://github.com/ArchitektApx
on May 16, 2021https://github.com/PowerShell/PSScriptAnalyzer/issues/1680#issue-894760625
Sydney Smith (SydneyhSmith)https://github.com/SydneyhSmith
PowerShell/vscode-powershellhttps://github.com/PowerShell/vscode-powershell
on May 18, 2021https://github.com/PowerShell/PSScriptAnalyzer/issues/1680#event-4762908519
Needs: Triage 🔍https://github.com/PowerShell/PSScriptAnalyzer/issues?q=state%3Aopen%20label%3A%22Needs%3A%20Triage%20%3Amag%3A%22
on May 18, 2021https://github.com/PowerShell/PSScriptAnalyzer/issues/1680#event-4762908677
Sydney Smith (SydneyhSmith)https://github.com/SydneyhSmith
Area - Formatterhttps://github.com/PowerShell/PSScriptAnalyzer/issues?q=state%3Aopen%20label%3A%22Area%20-%20Formatter%22
Issue - Bughttps://github.com/PowerShell/PSScriptAnalyzer/issues?q=state%3Aopen%20label%3A%22Issue%20-%20Bug%22
Needs: Triage 🔍https://github.com/PowerShell/PSScriptAnalyzer/issues?q=state%3Aopen%20label%3A%22Needs%3A%20Triage%20%3Amag%3A%22
on May 18, 2021https://github.com/PowerShell/PSScriptAnalyzer/issues/1680#event-4763251610
https://github.com/bergmeister
Christoph Bergmeister (bergmeister)https://github.com/bergmeister
on Dec 15, 2021https://github.com/PowerShell/PSScriptAnalyzer/issues/1680#issuecomment-995228883
https://github.com/fred-gagnon
Frédéric Gagnon (fred-gagnon)https://github.com/fred-gagnon
on Dec 16, 2021https://github.com/PowerShell/PSScriptAnalyzer/issues/1680#issuecomment-995827220
Christoph Bergmeister (@bergmeister)https://github.com/bergmeister
https://user-images.githubusercontent.com/61014947/146381550-fb6f1a0c-15e3-4636-bfce-8001534bbc2f.png
https://github.com/danielniccoli
Daniel Niccoli (danielniccoli)https://github.com/danielniccoli
on Jul 16, 2025https://github.com/PowerShell/PSScriptAnalyzer/issues/1680#issuecomment-3078775279
Andy Jordan (andyleejordan)https://github.com/andyleejordan
completedhttps://github.com/PowerShell/PSScriptAnalyzer/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#2173https://github.com/PowerShell/PSScriptAnalyzer/pull/2173
on May 4, 2026https://github.com/PowerShell/PSScriptAnalyzer/issues/1680#event-25149269162
Sign up for freehttps://github.com/signup?return_to=https://github.com/PowerShell/PSScriptAnalyzer/issues/1680
Sign in to commenthttps://github.com/login?return_to=https://github.com/PowerShell/PSScriptAnalyzer/issues/1680
Area - Formatterhttps://github.com/PowerShell/PSScriptAnalyzer/issues?q=state%3Aopen%20label%3A%22Area%20-%20Formatter%22
Issue - Bughttps://github.com/PowerShell/PSScriptAnalyzer/issues?q=state%3Aopen%20label%3A%22Issue%20-%20Bug%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.