Skip to content

Wrong problem reported #2885

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

Closed
HansWeihe opened this issue Aug 12, 2020 · 2 comments
Closed

Wrong problem reported #2885

HansWeihe opened this issue Aug 12, 2020 · 2 comments
Labels
Resolution-Duplicate Will close automatically.

Comments

@HansWeihe
Copy link

HansWeihe commented Aug 12, 2020

Issue Type: Bug

See PowerShell code below.
VS Code will report that "The variable 'AccountType' is assigned but never used in the 4 line.

$AccountType = 0

$ServiceAccountPath | ForEach-Object {
    $AccountType = 1
}

If ($AccountType -eq 1) {
}

Extension version: 2020.6.0
VS Code version: Code 1.47.1 (485c41f9460bdb830c4da12c102daff275415b53, 2020-07-13T22:42:53.386Z)
OS version: Windows_NT x64 10.0.18363

System Info
Item Value
CPUs Intel(R) Core(TM) i7-8550U CPU @ 1.80GHz (8 x 1992)
GPU Status 2d_canvas: enabled
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: disabled_off
protected_video_decode: enabled
rasterization: enabled
skia_renderer: disabled_off_ok
video_decode: enabled
viz_display_compositor: enabled_on
viz_hit_test_surface_layer: disabled_off_ok
webgl: enabled
webgl2: enabled
Load (avg) undefined
Memory (System) 15.86GB (6.64GB free)
Process Argv
Screen Reader no
VM 0%
@ghost ghost added the Needs: Triage Maintainer attention needed! label Aug 12, 2020
@rjmholt
Copy link
Contributor

rjmholt commented Aug 12, 2020

Duplicate of PowerShell/PSScriptAnalyzer#1163

@rjmholt rjmholt marked this as a duplicate of PowerShell/PSScriptAnalyzer#1163 Aug 12, 2020
@rjmholt rjmholt added Resolution-Duplicate Will close automatically. and removed Needs: Triage Maintainer attention needed! labels Aug 12, 2020
@ghost
Copy link

ghost commented Aug 13, 2020

This issue has been marked as duplicate and has not had any activity for 1 day. It has been closed for housekeeping purposes.

@ghost ghost closed this as completed Aug 13, 2020
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Resolution-Duplicate Will close automatically.
Projects
None yet
Development

No branches or pull requests

2 participants