Skip to content

Commit 6a438d2

Browse files
author
Kapil Borle
committed
Add access modifiers to AnimatedStatusBar fields
1 parent e592d5a commit 6a438d2

File tree

1 file changed

+26
-26
lines changed

1 file changed

+26
-26
lines changed

src/animatedStatusBar.ts

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -25,43 +25,43 @@ class AnimatedStatuBarItem implements StatusBarItem {
2525
private intervalId: NodeJS.Timer;
2626
private suffixStates: string[];
2727

28-
get alignment(): StatusBarAlignment {
28+
public get alignment(): StatusBarAlignment {
2929
return this.statusBarItem.alignment;
3030
}
3131

32-
get priority(): number {
32+
public get priority(): number {
3333
return this.statusBarItem.priority;
3434
}
3535

36-
get text(): string {
36+
public get text(): string {
3737
return this.statusBarItem.text;
3838
}
3939

40-
set text(value: string) {
40+
public set text(value: string) {
4141
this.statusBarItem.text = value;
4242
}
4343

44-
get tooltip(): string {
44+
public get tooltip(): string {
4545
return this.statusBarItem.tooltip;
4646
}
4747

48-
set tooltip(value: string) {
48+
public set tooltip(value: string) {
4949
this.statusBarItem.tooltip = value;
5050
}
5151

52-
get color(): string {
52+
public get color(): string {
5353
return this.statusBarItem.color;
5454
}
5555

56-
set color(value: string) {
56+
public set color(value: string) {
5757
this.statusBarItem.color = value;
5858
}
5959

60-
get command(): string {
60+
public get command(): string {
6161
return this.statusBarItem.command;
6262
}
6363

64-
set command(value: string) {
64+
public set command(value: string) {
6565
this.statusBarItem.command = value;
6666
}
6767

@@ -76,48 +76,48 @@ class AnimatedStatuBarItem implements StatusBarItem {
7676
this.elapsedTime = 0;
7777
}
7878

79-
show(hideWhenDone?: Thenable<any>): void {
79+
public show(hideWhenDone?: Thenable<any>): void {
8080
this.statusBarItem.show();
81-
this._start();
81+
this.start();
8282
if (hideWhenDone !== undefined) {
8383
hideWhenDone.then(() => this.hide());
8484
}
8585
}
8686

87-
hide(): void {
88-
this._stop();
87+
public hide(): void {
88+
this.stop();
8989
this.statusBarItem.hide();
9090
}
9191

92-
dispose(): void {
92+
public dispose(): void {
9393
this.statusBarItem.dispose();
9494
}
9595

96-
_updateCounter(): void {
96+
private updateCounter(): void {
9797
this.counter = (this.counter + 1) % this.maxCount;
9898
this.elapsedTime = this.elapsedTime + this.timerInterval;
9999
}
100100

101-
_updateText(): void {
101+
private updateText(): void {
102102
this.text = this.baseText + this.suffixStates[this.counter];
103103
}
104104

105-
_update(): void {
106-
this._updateCounter();
107-
this._updateText();
105+
private update(): void {
106+
this.updateCounter();
107+
this.updateText();
108108
}
109109

110-
_reset(): void {
110+
private reset(): void {
111111
this.counter = 0;
112-
this._updateText();
112+
this.updateText();
113113
}
114114

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);
118118
}
119119

120-
_stop(): void {
120+
private stop(): void {
121121
clearInterval(this.intervalId);
122122
}
123123
}

0 commit comments

Comments
 (0)