From cf9bf57a56041b7d9666fc73653510d8d044efd7 Mon Sep 17 00:00:00 2001 From: Matthew Fisher <40250218+MicroFish91@users.noreply.github.com> Date: Mon, 30 Oct 2023 16:16:52 -0700 Subject: [PATCH] Add extra reveal in case creating draft node via command palette (#533) --- src/commands/revisionDraft/RevisionDraftFileSystem.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/commands/revisionDraft/RevisionDraftFileSystem.ts b/src/commands/revisionDraft/RevisionDraftFileSystem.ts index e5154f947..e2cc9884a 100644 --- a/src/commands/revisionDraft/RevisionDraftFileSystem.ts +++ b/src/commands/revisionDraft/RevisionDraftFileSystem.ts @@ -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 }); }