File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed
src/tools/accessiblity-utils Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -71,15 +71,20 @@ export class AccessibilityScanner {
71
71
context : any ,
72
72
) : Promise < string > {
73
73
return new Promise ( ( resolve , reject ) => {
74
+ let timepercent = 0 ;
75
+ let dotCount = 1 ;
74
76
const interval = setInterval ( async ( ) => {
75
77
try {
76
78
const statusResp = await this . pollStatus ( scanId , scanRunId ) ;
77
79
const status = statusResp . data ! . status ;
78
- const progress = status === "completed" ? 100 : 0 ;
80
+ timepercent += 1.67 ;
81
+ const progress = status === "completed" ? 100 : timepercent ;
82
+ const dots = "." . repeat ( dotCount ) ;
83
+ dotCount = ( dotCount % 4 ) + 1 ;
79
84
const message =
80
85
status === "completed" || status === "failed"
81
- ? `Scan completed with status : ${ status } `
82
- : `Scan in progress ... ` ;
86
+ ? `Scan completed with status: ${ status } `
87
+ : `Scan in progress${ dots } ` ;
83
88
await context . sendNotification ( {
84
89
method : "notifications/progress" ,
85
90
params : {
You can’t perform that action at this time.
0 commit comments