Closed
Description
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% |