File tree Expand file tree Collapse file tree 4 files changed +15
-3
lines changed
Expand file tree Collapse file tree 4 files changed +15
-3
lines changed Original file line number Diff line number Diff line change 331331 "when" : " view == azureResourceGroups && viewItem =~ /azureResource(?!Type)/" ,
332332 "group" : " 9@1"
333333 },
334+ {
335+ "command" : " azureResourceGroups.refresh" ,
336+ "when" : " view == azureResourceGroups && viewItem =~ /group/" ,
337+ "group" : " inline@1"
338+ },
334339 {
335340 "command" : " azureResourceGroups.focusGroup" ,
336341 "when" : " view == azureResourceGroups && viewItem =~ /(group).*(unfocused)/" ,
337- "group" : " inline"
342+ "group" : " inline@2 "
338343 },
339344 {
340345 "command" : " azureResourceGroups.unfocusGroup" ,
341346 "when" : " view == azureResourceGroups && viewItem =~ /(focused).*(group)/" ,
342- "group" : " inline"
347+ "group" : " inline@2 "
343348 }
344349 ],
345350 "commandPalette" : [
Original file line number Diff line number Diff line change @@ -126,7 +126,7 @@ export class GroupTreeItemBase extends AzExtParentTreeItem {
126126
127127 public async refreshImpl ( context : IActionContext ) : Promise < void > {
128128 await Promise . all (
129- Object . values ( this . treeMap ) . map ( async resolvable => resolvable . resolve ( true , context ) )
129+ Object . values ( this . treeMap ) . map ( async ti => ti . refresh ( context ) )
130130 ) ;
131131 }
132132
Original file line number Diff line number Diff line change @@ -68,6 +68,7 @@ export class ResourceGroupTreeItem extends GroupTreeItemBase {
6868 this . data = await client . resourceGroups . get ( this . name ) ;
6969 this . mTime = Date . now ( ) ;
7070 ext . tagFS . fireSoon ( { type : FileChangeType . Changed , item : this } ) ;
71+ await super . refreshImpl ( context ) ;
7172 }
7273
7374 public async deleteTreeItemImpl ( context : IActionContext ) : Promise < void > {
Original file line number Diff line number Diff line change @@ -147,6 +147,12 @@ export class SubscriptionTreeItem extends SubscriptionTreeItemBase {
147147 return Object . values ( this . treeMap ) ;
148148 }
149149
150+ public async refreshImpl ( context : IActionContext ) : Promise < void > {
151+ for ( const ti of Object . values ( this . treeMap ) ) {
152+ void ti . refresh ( context ) ;
153+ }
154+ }
155+
150156
151157 public async createChildImpl ( context : ICreateChildImplContext ) : Promise < ResourceGroupTreeItem > {
152158 const wizardContext : IResourceGroupWizardContext & ExecuteActivityContext = {
You can’t perform that action at this time.
0 commit comments