File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ import { commands } from 'vscode';
88import { ext } from '../extensionVariables' ;
99import { BranchDataItemWrapper } from '../tree/BranchDataProviderItem' ;
1010import { ResourceGroupsItem } from '../tree/ResourceGroupsItem' ;
11+ import { GroupingItem } from '../tree/azure/GroupingItem' ;
1112import { clearActivities } from './activities/clearActivities' ;
1213import { createResource } from './createResource' ;
1314import { createResourceGroup } from './createResourceGroup' ;
@@ -31,7 +32,12 @@ export function registerCommands(): void {
3132 // v1.5 client extensions attach these commands to tree item context menus for refreshing their tree items
3233 registerCommand ( 'azureResourceGroups.refresh' , async ( context , node ?: ResourceGroupsItem ) => {
3334 await handleAzExtTreeItemRefresh ( context , node ) ; // for compatibility with v1.5 client extensions
34- ext . actions . refreshAzureTree ( node ) ;
35+
36+ if ( node instanceof GroupingItem ) {
37+ ext . actions . refreshAzureTree ( node . parent ) ;
38+ } else {
39+ ext . actions . refreshAzureTree ( node ) ;
40+ }
3541 } ) ;
3642 registerCommand ( 'azureWorkspace.refresh' , async ( context , node ?: ResourceGroupsItem ) => {
3743 await handleAzExtTreeItemRefresh ( context , node ) ; // for compatibility with v1.5 client extensions
You can’t perform that action at this time.
0 commit comments