Skip to content

Commit

Permalink
Add extra reveal in case creating draft node via command palette (#533)
Browse files Browse the repository at this point in the history
  • Loading branch information
MicroFish91 authored Oct 30, 2023
1 parent 605dee8 commit cf9bf57
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/commands/revisionDraft/RevisionDraftFileSystem.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,9 @@ export class RevisionDraftFileSystem implements FileSystemProvider {
file = new RevisionDraftFile(revisionContent, item.containerApp, nonNullValueAndProp(item.revision, 'name'));
}

// Currently the container app id reveals only the hidden container app resources, so we'll have to make due with expanding the parent for now
void commands.executeCommand('azureResourceGroups.revealResource', file.containerApp.managedEnvironmentId, { select: false, expand: true });

this.draftStore.set(uri.path, file);
this.fireSoon({ type: FileChangeType.Created, uri });
}
Expand Down

0 comments on commit cf9bf57

Please sign in to comment.