@@ -21,15 +21,15 @@ export async function initTreeViews(context: vscode.ExtensionContext, store: Run
2121
2222 context . subscriptions . push (
2323 vscode . commands . registerCommand ( "github-actions.explorer.refresh" , async ( ) => {
24- workflowTreeProvider . refresh ( ) ;
25- settingsTreeProvider . refresh ( ) ;
24+ await workflowTreeProvider . refresh ( ) ;
25+ await settingsTreeProvider . refresh ( ) ;
2626 await executeCacheClearCommand ( ) ;
2727 } )
2828 ) ;
2929
3030 context . subscriptions . push (
31- vscode . commands . registerCommand ( "github-actions.explorer.current-branch.refresh" , ( ) => {
32- currentBranchTreeProvider . refresh ( ) ;
31+ vscode . commands . registerCommand ( "github-actions.explorer.current-branch.refresh" , async ( ) => {
32+ await currentBranchTreeProvider . refresh ( ) ;
3333 } )
3434 ) ;
3535
@@ -46,7 +46,7 @@ export async function initTreeViews(context: vscode.ExtensionContext, store: Run
4646
4747 let currentAhead = repo . repositoryState . HEAD ?. ahead ;
4848 let currentHeadName = repo . repositoryState . HEAD ?. name ;
49- repo . repositoryState . onDidChange ( ( ) => {
49+ repo . repositoryState . onDidChange ( async ( ) => {
5050 // When the current head/branch changes, or the number of commits ahead changes (which indicates
5151 // a push), refresh the current-branch view
5252 if (
@@ -55,7 +55,7 @@ export async function initTreeViews(context: vscode.ExtensionContext, store: Run
5555 ) {
5656 currentHeadName = repo . repositoryState ?. HEAD ?. name ;
5757 currentAhead = repo . repositoryState ?. HEAD ?. ahead ;
58- currentBranchTreeProvider . refresh ( ) ;
58+ await currentBranchTreeProvider . refresh ( ) ;
5959 }
6060 } ) ;
6161 }
0 commit comments