Skip to content
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

Foreach Begin/Process/End awareness #1031

Closed
jrich523 opened this issue Jul 6, 2018 · 3 comments
Closed

Foreach Begin/Process/End awareness #1031

jrich523 opened this issue Jul 6, 2018 · 3 comments

Comments

@jrich523
Copy link

jrich523 commented Jul 6, 2018

To start off, this is directly from VS Code, I havent tested it anywhere else or in any other way.

VS Code: 1.24.1
Powershell plugin: 1.7.0

A simple statement like this

$collection | %{ $myVar = 0 }{ $myvar += $_}{$myVar}

obviously this is a worthless bit of code, however it complains that myVar is declared but never used.

@tom-field
Copy link

how to solve it?

@spozner
Copy link

spozner commented Jul 25, 2020

Isn't anyone going to fix this... It makes looking at problems in vscode worthless.

@rjmholt
Copy link
Contributor

rjmholt commented Feb 9, 2021

Duplicate of #1163

@rjmholt rjmholt marked this as a duplicate of #1163 Feb 9, 2021
@rjmholt rjmholt closed this as completed Feb 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants