Skip to content

Commit 0b0c393

Browse files
committed
handle promise failure, bump version
1 parent 4d31fb6 commit 0b0c393

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "repo-status",
33
"displayName": "Repository status",
44
"description": "Shows repository branch grade and issue count in the status bar.",
5-
"version": "1.0.0",
5+
"version": "1.1.0",
66
"publisher": "codefactor",
77
"repository": {
88
"type": "git",

src/extension.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,13 +62,17 @@ function updateStatusBarItem(): void {
6262
statusBarItem.show();
6363
itemState = State.Found;
6464
}
65-
else
65+
else
6666
{
6767
statusBarItem.text = `$(megaphone) -`;
6868
statusBarItem.show();
6969
itemState = State.NotFound;
7070
}
71-
});
71+
}).then(undefined, err => {
72+
statusBarItem.text = `$(megaphone) -`;
73+
statusBarItem.show();
74+
itemState = State.NotFound;
75+
})
7276
} catch (exception) {
7377
statusBarItem.text = `$(megaphone) -`;
7478
statusBarItem.show();

0 commit comments

Comments
 (0)