Implement tree structure groups for hierarchical resource organization#11
Draft
Implement tree structure groups for hierarchical resource organization#11
Conversation
Co-authored-by: joninafta <12600882+joninafta@users.noreply.github.com>
…lk operations Co-authored-by: joninafta <12600882+joninafta@users.noreply.github.com>
…ructure groups Co-authored-by: joninafta <12600882+joninafta@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Tree structure groups
Implement tree structure groups for hierarchical resource organization
Sep 16, 2025
Copilot stopped work on behalf of
joninafta due to an error
September 16, 2025 00:49
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR implements the requested tree structure groups feature that allows organizing instructions, chatmodes, and prompts in a hierarchical structure with group-level enable/disable functionality.
Overview
The feature automatically detects folder-based organization in catalogs and creates collapsible groups in the VS Code tree view. Users can now enable/disable entire groups of related resources with a single click, making it much easier to manage complex catalogs with many resources.
Key Changes
Resource Model Extensions:
groupPathproperty toResourceinterface to track folder-based organizationResourceGroupinterface for managing hierarchical groups with state trackingEnhanced Resource Discovery:
extractGroupPath()method automatically detects group structure from file pathschatmodes/ai-agents/code-assistant.chatmode.md→ creates "ai-agents" groupTree Provider Updates:
CategoryTreeProvidernow displays collapsible folder groups with proper state indicators(active/total)for each groupBulk Operations:
copilotCatalog.activateGroupandcopilotCatalog.deactivateGroupExample Transformation
Before (flat structure):
After (hierarchical groups):
Catalog Structure Support
The feature works with existing folder structures:
Benefits
Testing
The feature requires no configuration - groups are automatically created based on existing folder structures in catalogs.
Fixes #10.
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.