Skip to content

Commit 933a7d9

Browse files
committed
Update @types/vscode to 1.59.0
And fix build.
1 parent d0b93f5 commit 933a7d9

File tree

3 files changed

+23
-10
lines changed

3 files changed

+23
-10
lines changed

package-lock.json

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
"@types/semver": "~7.3.9",
6060
"@types/sinon": "~10.0.11",
6161
"@types/uuid": "~8.3.4",
62-
"@types/vscode": "~1.56.0",
62+
"@types/vscode": "~1.59.0",
6363
"@vscode/test-electron": "~2.1.2",
6464
"esbuild": "^0.14.23",
6565
"glob": "^7.2.0",

src/controls/animatedStatusBar.ts

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ import {
77
StatusBarItem,
88
ThemeColor,
99
window,
10-
Command} from "vscode";
10+
Command,
11+
AccessibilityInformation} from "vscode";
1112

1213
export function showAnimatedStatusBarMessage(text: string, hideWhenDone: Thenable<any>): Disposable {
1314
const animatedStatusBarItem: AnimatedStatusBarItem = new AnimatedStatusBarItem(text);
@@ -26,6 +27,18 @@ class AnimatedStatusBarItem implements StatusBarItem {
2627
private intervalId: NodeJS.Timer;
2728
private suffixStates: string[];
2829

30+
public get id(): string {
31+
return this.statusBarItem.id;
32+
}
33+
34+
public get name(): string {
35+
return this.statusBarItem.name;
36+
}
37+
38+
public get accessibilityInformation(): AccessibilityInformation {
39+
return this.statusBarItem.accessibilityInformation;
40+
}
41+
2942
public get alignment(): StatusBarAlignment {
3043
return this.statusBarItem.alignment;
3144
}
@@ -43,7 +56,7 @@ class AnimatedStatusBarItem implements StatusBarItem {
4356
}
4457

4558
public get tooltip(): string {
46-
return this.statusBarItem.tooltip;
59+
return this.statusBarItem.tooltip.toString();
4760
}
4861

4962
public set tooltip(value: string) {

0 commit comments

Comments
 (0)