Skip to content
This repository has been archived by the owner on Nov 27, 2023. It is now read-only.

Commit

Permalink
refactor: first refresh of status should be when token is read
Browse files Browse the repository at this point in the history
  • Loading branch information
KnisterPeter committed Nov 15, 2016
1 parent 12c0b08 commit 2f84efd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ export function activate(context: vscode.ExtensionContext): void {
getToken(context)
.then(_token => {
token = _token;
refreshPullRequestStatus();
});

channel = vscode.window.createOutputChannel('github');
Expand All @@ -37,7 +38,6 @@ export function activate(context: vscode.ExtensionContext): void {
statusBar.text = '$(git-pull-request)';
statusBar.color = '#888';
context.subscriptions.push(statusBar);
refreshPullRequestStatus();
}

async function refreshPullRequestStatus(): Promise<void> {
Expand Down

0 comments on commit 2f84efd

Please sign in to comment.