We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The VS Code PowerShell extension doesn't correctly identify the use of variables declared in a For-EachObject -Begin block.
For-EachObject
-Begin
Name Value ---- ----- PSVersion 7.3.1 PSEdition Core GitCommitId 7.3.1 OS Microsoft Windows 10.0.19044 Platform Win32NT PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…} PSRemotingProtocolVersion 2.3 SerializationVersion 1.1.0.1 WSManStackVersion 3.0
Version: 1.74.3 (user setup) Commit: 97dec172d3256f8ca4bfb2143f3f76b503ca0534 Datum: 2023-01-09T16:59:02.252Z Electron: 19.1.8 Chromium: 102.0.5005.167 Node.js: 16.14.2 V8: 10.2.154.15-electron.0 Betriebssystem: Windows_NT x64 10.0.19044 Sandkasten: No
v2022.12.1
ForEach-Object -Begin { $idx = 1 } -Process { ++$idx; $idx; }
No response
The text was updated successfully, but these errors were encountered:
Duplicate of PowerShell/PSScriptAnalyzer#1641
Sorry, something went wrong.
Thanks for the report! We're tracking this in the linked issue above.
This issue has been marked as external. It has been automatically closed for housekeeping purposes.
No branches or pull requests
Prerequisites
Summary
The VS Code PowerShell extension doesn't correctly identify the use of variables declared in a
For-EachObject
-Begin
block.PowerShell Version
Visual Studio Code Version
Extension Version
v2022.12.1
Steps to Reproduce
Visuals
Logs
No response
The text was updated successfully, but these errors were encountered: