-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Reorganize VB snippets from VS_Snippets_CLR_Classic and VS_Snippets_CLR_System to match C# structure #11493
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
…d and XML references updated Co-authored-by: gewarren <[email protected]>
…tructure Co-authored-by: gewarren <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove the final "vb" subfolder and move the files up a level, here and everywhere else.
Please also fix the code snippet not found build warnings. |
…nces to match C# structure Co-authored-by: gewarren <[email protected]>
I've removed the "vb" subfolders from all reorganized VB snippet directories and updated 5,144 XML references to fix the build warnings. VB snippets now match the C# structure exactly: files are directly in their parent directories without the extra "vb" subfolder. Commit 346447b. |
@copilot how many files are moved in this PR and how many are just changed but not moved? |
In this PR: Files moved: 2,901 files
Files changed but not moved: 1,143 files
Total files affected: 4,044 files The moved files were relocated from the old VS_Snippets structure to the new namespace/type/member organization, while the XML files were modified in place to update their snippet path references. |
@copilot The Snippets 5000 report contains information about missing project files. Can you attempt to add the missing project files (they should target .NET 9), compile the projects, and if they compile without error keep the project file, but if there is a compile error, delete the project file. |
This PR reorganizes Visual Basic code snippets to follow the same directory structure as C# snippets, making them consistent and easier to maintain.
Changes Made
Successfully reorganized 1,121 VB snippet directories (66% of total) from the legacy VS_Snippets structure to the modern namespace/type/member organization:
Before and After
Before:
After:
Implementation Details
~/snippets/visualbasic/System/String/Overview/vb/System.String.Class.vb
)Remaining Work
586 directories (775 VB files) remain in the old structure due to:
These can be addressed in future PRs with manual mapping or enhanced parsing logic.
Testing
The VB snippets now follow the same organizational pattern as C# snippets:
namespace/TypeName/MemberName/
structure, significantly improving consistency across the repository.Fixes #11492.
💡 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.