@@ -25,43 +25,43 @@ class AnimatedStatuBarItem implements StatusBarItem {
25
25
private intervalId : NodeJS . Timer ;
26
26
private suffixStates : string [ ] ;
27
27
28
- get alignment ( ) : StatusBarAlignment {
28
+ public get alignment ( ) : StatusBarAlignment {
29
29
return this . statusBarItem . alignment ;
30
30
}
31
31
32
- get priority ( ) : number {
32
+ public get priority ( ) : number {
33
33
return this . statusBarItem . priority ;
34
34
}
35
35
36
- get text ( ) : string {
36
+ public get text ( ) : string {
37
37
return this . statusBarItem . text ;
38
38
}
39
39
40
- set text ( value : string ) {
40
+ public set text ( value : string ) {
41
41
this . statusBarItem . text = value ;
42
42
}
43
43
44
- get tooltip ( ) : string {
44
+ public get tooltip ( ) : string {
45
45
return this . statusBarItem . tooltip ;
46
46
}
47
47
48
- set tooltip ( value : string ) {
48
+ public set tooltip ( value : string ) {
49
49
this . statusBarItem . tooltip = value ;
50
50
}
51
51
52
- get color ( ) : string {
52
+ public get color ( ) : string {
53
53
return this . statusBarItem . color ;
54
54
}
55
55
56
- set color ( value : string ) {
56
+ public set color ( value : string ) {
57
57
this . statusBarItem . color = value ;
58
58
}
59
59
60
- get command ( ) : string {
60
+ public get command ( ) : string {
61
61
return this . statusBarItem . command ;
62
62
}
63
63
64
- set command ( value : string ) {
64
+ public set command ( value : string ) {
65
65
this . statusBarItem . command = value ;
66
66
}
67
67
@@ -76,48 +76,48 @@ class AnimatedStatuBarItem implements StatusBarItem {
76
76
this . elapsedTime = 0 ;
77
77
}
78
78
79
- show ( hideWhenDone ?: Thenable < any > ) : void {
79
+ public show ( hideWhenDone ?: Thenable < any > ) : void {
80
80
this . statusBarItem . show ( ) ;
81
- this . _start ( ) ;
81
+ this . start ( ) ;
82
82
if ( hideWhenDone !== undefined ) {
83
83
hideWhenDone . then ( ( ) => this . hide ( ) ) ;
84
84
}
85
85
}
86
86
87
- hide ( ) : void {
88
- this . _stop ( ) ;
87
+ public hide ( ) : void {
88
+ this . stop ( ) ;
89
89
this . statusBarItem . hide ( ) ;
90
90
}
91
91
92
- dispose ( ) : void {
92
+ public dispose ( ) : void {
93
93
this . statusBarItem . dispose ( ) ;
94
94
}
95
95
96
- _updateCounter ( ) : void {
96
+ private updateCounter ( ) : void {
97
97
this . counter = ( this . counter + 1 ) % this . maxCount ;
98
98
this . elapsedTime = this . elapsedTime + this . timerInterval ;
99
99
}
100
100
101
- _updateText ( ) : void {
101
+ private updateText ( ) : void {
102
102
this . text = this . baseText + this . suffixStates [ this . counter ] ;
103
103
}
104
104
105
- _update ( ) : void {
106
- this . _updateCounter ( ) ;
107
- this . _updateText ( ) ;
105
+ private update ( ) : void {
106
+ this . updateCounter ( ) ;
107
+ this . updateText ( ) ;
108
108
}
109
109
110
- _reset ( ) : void {
110
+ private reset ( ) : void {
111
111
this . counter = 0 ;
112
- this . _updateText ( ) ;
112
+ this . updateText ( ) ;
113
113
}
114
114
115
- _start ( ) : void {
116
- this . _reset ( ) ;
117
- this . intervalId = setInterval ( ( ) => this . _update ( ) , this . timerInterval ) ;
115
+ private start ( ) : void {
116
+ this . reset ( ) ;
117
+ this . intervalId = setInterval ( ( ) => this . update ( ) , this . timerInterval ) ;
118
118
}
119
119
120
- _stop ( ) : void {
120
+ private stop ( ) : void {
121
121
clearInterval ( this . intervalId ) ;
122
122
}
123
123
}
0 commit comments