From b8b8806d9c7fea10f9982254d32db409909a7653 Mon Sep 17 00:00:00 2001 From: alexweininger Date: Thu, 19 Dec 2024 17:56:58 -0500 Subject: [PATCH] Fixup resource group grouping items --- src/tree/azure/grouping/ResourceGroupGroupingItem.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/tree/azure/grouping/ResourceGroupGroupingItem.ts b/src/tree/azure/grouping/ResourceGroupGroupingItem.ts index 5118d577..4956ea9b 100644 --- a/src/tree/azure/grouping/ResourceGroupGroupingItem.ts +++ b/src/tree/azure/grouping/ResourceGroupGroupingItem.ts @@ -12,6 +12,7 @@ import { ITagsModel, ResourceTags } from "../../../commands/tags/TagFileSystem"; import { canFocusContextValue, showHiddenTypesSettingKey } from "../../../constants"; import { settingUtils } from "../../../utils/settingUtils"; import { createPortalUrl } from "../../../utils/v2/createPortalUrl"; +import { createAzureIdPrefix } from "../idPrefix"; import { GroupingItem, GroupingItemOptions } from "./GroupingItem"; import { GroupingItemFactoryOptions } from "./GroupingItemFactory"; @@ -25,7 +26,6 @@ export class ResourceGroupGroupingItem extends GroupingItem { constructor(readonly resourceGroup: AzureResource, options: GroupingItemOptions, factoryOptions: GroupingItemFactoryOptions) { super(options, factoryOptions); - this.id = resourceGroup.id; this.portalUrl = createPortalUrl(resourceGroup.subscription, resourceGroup.id); this.viewProperties = { label: resourceGroup.name, @@ -36,6 +36,7 @@ export class ResourceGroupGroupingItem extends GroupingItem { ...this.resourceGroup.subscription, ...createSubscriptionContext(resourceGroup.subscription), }; + this.id = `${createAzureIdPrefix(this.subscription)}${resourceGroup.id}`; this.tagsModel = new ResourceTags(resourceGroup); this.contextValues.push('hasPortalUrl', 'azureResourceGroup', canFocusContextValue); }