File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 166166 "description" : " Insert a foreach loop with Write-Progress initialized" ,
167167 "body" : [
168168 " \\ $total = \\ $${1:array}.count" ,
169- " \\ $i = 1" ,
170- " \\ $progPercent = \" {0:n2}\" -f ([math]::round(\\ $i /\\ $total,4) * 100)" ,
171- " Write-Progress -Activity \" ${3:activityName}\" -Status \"\\ $i of \\ $total - \\ $progPercent% Complete:\" -PercentComplete \\ $progPercent" ,
169+ " \\ $${4:i} = 1" ,
170+ " \\ $progPercent = \" {0:n2}\" -f ([math]::round(\\ $${4:i} /\\ $total,4) * 100)" ,
171+ " Write-Progress -Activity \" ${3:activityName}\" -Status \"\\ $${4:i} of \\ $total - \\ $progPercent% Complete:\" -PercentComplete \\ $progPercent" ,
172172 " foreach ($${2:item} in $${1:array}) {" ,
173- " \\ $progPercent = \" {0:n2}\" -f ([math]::round(\\ $i /\\ $total,4) * 100)" ,
174- " Write-Progress -Activity \" ${3:activityName}\" -Status \"\\ $i of \\ $total - \\ $progPercent% Complete:\" -PercentComplete \\ $progPercent" ,
173+ " \\ $progPercent = \" {0:n2}\" -f ([math]::round(\\ $${4:i} /\\ $total,4) * 100)" ,
174+ " Write-Progress -Activity \" ${3:activityName}\" -Status \"\\ $${4:i} of \\ $total - \\ $progPercent% Complete:\" -PercentComplete \\ $progPercent" ,
175175 " # Insert Code Here" ,
176176 " ${0}" ,
177177 " " ,
178- " \\ $i ++" ,
178+ " \\ $${4:i} ++" ,
179179 " }" ,
180180 " "
181181 ]
You can’t perform that action at this time.
0 commit comments